1212 - uses : actions/setup-node@v6
1313 with :
1414 node-version-file : " .nvmrc"
15- - uses : pnpm/action-setup@v4
16- - run : pnpm install
17- - run : pnpm lint
18- - run : pnpm prettier --check
15+ - run : npm ci
16+ - run : npm run lint
17+ - run : npm run prettier -- --check
1918
2019 test :
2120 runs-on : ${{ matrix.os }}
@@ -29,16 +28,17 @@ jobs:
2928 - uses : actions/setup-node@v6
3029 with :
3130 node-version-file : " .nvmrc"
31+ # pnpm is needed for test fixtures that use packageManager: pnpm
3232 - uses : pnpm/action-setup@v4
33- - run : corepack enable
34- shell : bash
33+ with :
34+ version : 10
3535
3636 - run : /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb"
3737 shell : bash
3838 if : ${{ success() && matrix.os == 'ubuntu-latest' }}
3939
40- - run : pnpm install
41- - run : pnpm test
40+ - run : npm ci
41+ - run : npm test
4242 env :
4343 DISPLAY : " :99.0"
4444
@@ -50,10 +50,10 @@ jobs:
5050 - uses : actions/setup-node@v6
5151 with :
5252 node-version-file : " .nvmrc"
53- - uses : pnpm/action-setup@v4
54- - run : pnpm install
55- - run : pnpm exec playwright install --with-deps chromium
56- - run : pnpm test:web
53+ - run : npm ci
54+ - run : npx playwright install --with-deps chromium
55+ - run : npm run test:web
56+
5757 package :
5858 runs-on : ubuntu-latest
5959 needs : [lint, test, test-web]
@@ -63,16 +63,16 @@ jobs:
6363 - uses : actions/setup-node@v6
6464 with :
6565 node-version-file : " .nvmrc"
66- - uses : pnpm/action-setup@v4
67- - run : pnpm install
68- - run : pnpm compile
66+ - run : npm ci
67+ - run : npm run compile
6968 - run : npx @vscode/vsce package --no-dependencies
7069 - run : echo "VSIX_PATH=$(find . -maxdepth 1 -type f -iname "*.vsix" | head -1)" >> $GITHUB_ENV
7170 - run : echo "VSIX_NAME=$(basename $(find . -maxdepth 1 -type f -iname "*.vsix" | head -1))" >> $GITHUB_ENV
7271 - uses : actions/upload-artifact@v5
7372 with :
7473 path : ${{ env.VSIX_PATH }}
7574 name : ${{ env.VSIX_NAME }}
75+
7676 release :
7777 runs-on : ubuntu-latest
7878 needs : package
8383 - uses : actions/setup-node@v6
8484 with :
8585 node-version-file : " .nvmrc"
86- - uses : pnpm/action-setup@v4
8786 - name : Check if prerelease
8887 id : check_prerelease
8988 run : |
9291 else
9392 echo "is_prerelease=false" >> $GITHUB_OUTPUT
9493 fi
95- - run : pnpm install
96- - run : pnpm compile
94+ - run : npm ci
95+ - run : npm run compile
9796 - run : npx @vscode/vsce package --no-dependencies ${{ steps.check_prerelease.outputs.is_prerelease == 'true' && '--pre-release' || '' }}
9897 - run : echo "VSIX_PATH=$(find . -maxdepth 1 -type f -iname "*.vsix" | head -1)" >> $GITHUB_ENV
9998 - run : echo "VSIX_NAME=$(basename $(find . -maxdepth 1 -type f -iname "*.vsix" | head -1))" >> $GITHUB_ENV
0 commit comments