Skip to content

Commit b8dd4b3

Browse files
committed
ci: update pnpm
1 parent 149aba0 commit b8dd4b3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ jobs:
2727
with:
2828
node-version: 18.x
2929

30-
- name: Run npm install
31-
run: npm install
30+
- name: Install and run pnpm install
31+
run: npm install -g pnpm && pnpm install
3232

3333
- name: Run pretest
34-
run: xvfb-run -a npm run pretest
34+
run: xvfb-run -a pnpm run pretest
3535
if: runner.os == 'Linux'
3636

3737
- name: Run pretest
38-
run: npm run pretest
38+
run: pnpm run pretest
3939
if: runner.os != 'Linux'
4040

4141
- name: Run vsce package
42-
run: mkdir -p out/vsix && npm exec vsce package -- -o out/vsix/
42+
run: mkdir -p out/vsix && pnpm exec vsce package -- -o out/vsix/
4343

4444
- name: Upload artifact
4545
if: runner.os == 'Linux'

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ jobs:
1717
with:
1818
node-version: 18.x
1919

20-
- name: Run npm install
21-
run: npm install
20+
- name: Install and run pnpm install
21+
run: npm install -g pnpm && pnpm install
2222

2323
- name: Run vsce package
24-
run: mkdir -p out/vsix && npm exec vsce package -- -o out/vsix/
24+
run: mkdir -p out/vsix && pnpm exec vsce package -- -o out/vsix/
2525

2626
- name: Create Github Release
2727
uses: softprops/action-gh-release@v2
2828
with:
2929
files: out/vsix/*.vsix
3030

3131
- name: Publish to VS Code Marketplace
32-
run: npm run deploy
32+
run: pnpm run deploy
3333
env:
3434
VSCE_PAT: ${{ secrets.VSCE_PAT }}
3535

3636
- name: Publish to Open VSX
37-
run: npm run deploy_ovsx -- --pat ${{ secrets.OVSX_PAT }}
37+
run: pnpm run deploy_ovsx -- --pat ${{ secrets.OVSX_PAT }}

0 commit comments

Comments
 (0)