Skip to content

Commit 404b1e6

Browse files
authored
Switch to node 20.x (#424)
* Switch to node 20.x * break apart open vsx and vscode publishing
1 parent 9523639 commit 404b1e6

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

.github/workflows/publish.yaml renamed to .github/workflows/publish-open-vsx.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,15 @@ jobs:
1313
- name: Setup Node.js
1414
uses: actions/setup-node@v4
1515
with:
16-
node-version: 18.x
16+
node-version: 20.x
1717
- name: Setup NPM
1818
run: |
1919
npm install
20-
npm install -g vsce ovsx
20+
npm install -g ovsx
2121
npm run compile
2222
- name: Publish
2323
if: success()
2424
run: |
25-
vsce publish
2625
ovsx publish
2726
env:
28-
VSCE_PAT: ${{ secrets.VSCE_PAT }}
2927
OVSX_PAT: ${{ secrets.OVSX_PAT }}

.github/workflows/publish-vscode.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Upload package to VSCode Marketplace
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: 20.x
17+
- name: Setup NPM
18+
run: |
19+
npm install
20+
npm install -g vsce
21+
npm run compile
22+
- name: Publish
23+
if: success()
24+
run: |
25+
vsce publish
26+
env:
27+
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 commit comments

Comments
 (0)