From 22210e59b99cd347609b7ea9acc8b250c9cec7e9 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Fri, 5 Apr 2024 18:42:39 +0100 Subject: [PATCH] ci: prune before building package If we don't remove dev dependencies the package will be huge. This will however also remove vsce, so install it globally --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbb4075..e43df56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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