Skip to content

Commit

Permalink
fix: Added node-prune back into the pipeline to reduce the package si…
Browse files Browse the repository at this point in the history
…ze (#244)
  • Loading branch information
slewis74 authored May 18, 2022
1 parent e297a74 commit 3cf604c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
with:
node-version: '16'
cache: 'npm'

- name: Build
id: build
run: |
Expand Down Expand Up @@ -63,6 +64,7 @@ jobs:
with:
node-version: '16'
cache: 'npm'

- name: Test
run: |
npm install
Expand Down Expand Up @@ -92,6 +94,11 @@ jobs:
node-version: '16'
cache: 'npm'

- name: Install Go
uses: actions/setup-go@v2
with:
go-version: '^1.17.7'

- name: Embed octo portable
run: |
pwsh ./embed-octo.ps1
Expand Down
6 changes: 6 additions & 0 deletions pack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ function SetupTaskDependencies($workingDirectory) {
mkdir "$tempPath/node_modules"
& npm install --prefix $tempPath azure-pipelines-task-lib azure-pipelines-tool-lib
& npm dedup --prefix $tempPath
& go install github.com/tj/node-prune@latest

$goPath = go env GOPATH
$command = "$goPath/bin/node-prune"

Invoke-Expression "$command $tempPath/node_modules"

$taskManifestFiles = Get-ChildItem $workingDirectory -Include "task.json" -Recurse

Expand Down

0 comments on commit 3cf604c

Please sign in to comment.