Skip to content

Commit

Permalink
ci: prune before building package
Browse files Browse the repository at this point in the history
If we don't remove dev dependencies the package will be huge.
This will however also remove vsce, so install it globally
  • Loading branch information
iamsergio committed Apr 5, 2024
1 parent 75195c3 commit 22210e5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@ jobs:
- name: Install dependencies
run: |
npm install --loglevel verbose
npm install @vscode/vsce
npm install @vscode/vsce -g
- name: compile
run: npm run compile

- name: remove dev dependencies
run: npm prune --production

- name: vsce package
run: node_modules/.bin/vsce package
run: vsce package

# - name: Install ninja-build tool
# uses: turtlesec-no/get-ninja@main
Expand Down

0 comments on commit 22210e5

Please sign in to comment.