Skip to content

Commit 608a8af

Browse files
committed
ci: use Node 20 and @vscode/vsce for publish; update checkout/setup-node
1 parent 12eee0e commit 608a8af

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- name: Setup Node version
11-
uses: actions/setup-node@v1
12-
with:
13-
node-version: 18
10+
- uses: actions/checkout@v4
1411

15-
- uses: actions/checkout@v2
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
1616

1717
- name: Make envfile
1818
uses: SpicyPizza/create-envfile@v1.3
@@ -29,7 +29,8 @@ jobs:
2929
yarn lint
3030
yarn test
3131
32-
- name: publish
32+
- name: Publish to VS Code Marketplace
33+
env:
34+
VSCE_PAT: ${{ secrets.VSCE_ACCESS_TOKEN }}
3335
run: |
34-
yarn global add vsce
35-
vsce publish -p ${{ secrets.VSCE_ACCESS_TOKEN }}
36+
npx @vscode/vsce publish -p "$VSCE_PAT"

0 commit comments

Comments
 (0)