Skip to content

Commit 21c3ea1

Browse files
Refactor CI configuration to improve publish step and ensure Node.js setup
1 parent 12e864d commit 21c3ea1

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,20 @@ jobs:
2525
if: runner.os == 'Linux'
2626
- run: pnpm test
2727
if: runner.os != 'Linux'
28-
- name: Publish
29-
if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
30-
run: pnpm run deploy
31-
env:
32-
VSCE_PAT: ${{ secrets.VSCE_PAT }}
33-
28+
publish:
29+
needs: build
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
- name: Install Node.js
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: 23.x
38+
- run: npm -g install pnpm@latest
39+
- run: pnpm install
40+
- name: Publish
41+
if: startsWith(github.ref, 'refs/tags/')
42+
run: pnpm run deploy
43+
env:
44+
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 commit comments

Comments
 (0)