Skip to content

Commit d2b4028

Browse files
committed
feat: publish action
1 parent 389a475 commit d2b4028

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,25 @@
11
on:
2-
push:
3-
release:
4-
types:
5-
- created
2+
release:
3+
types:
4+
- created
65

7-
name: Build and Deploy Extension
6+
name: Publish Extension
87
jobs:
9-
build:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v2
14-
- name: Install Node.js
15-
uses: actions/setup-node@v1
16-
with:
17-
node-version: 10.x
18-
- run: npm install
19-
- run: xvfb-run -a npm test
208
deploy:
219
runs-on: ubuntu-latest
2210
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
15+
- run: npm ci
2316
- name: Publish to Open VSX Registry
2417
uses: HaaLeo/publish-vscode-extension@v0
25-
id: publishToOpenVSX
2618
with:
2719
pat: ${{ secrets.OPEN_VSX_TOKEN }}
2820
- name: Publish to Visual Studio Marketplace
2921
uses: HaaLeo/publish-vscode-extension@v0
3022
with:
3123
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
3224
registryUrl: https://marketplace.visualstudio.com
33-
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
34-
packagePath: ''
3525

0 commit comments

Comments
 (0)