Skip to content

Commit bb82f36

Browse files
committed
Improve Github worflows
1 parent 46aeead commit bb82f36

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

.github/workflows/package.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Package Extension
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
package:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 16
16+
- name: Install dependencies
17+
run: npm install
18+
- name: Package VSCode Extension
19+
run: npx vsce package
20+
- name: Upload VSIX as artifact
21+
uses: actions/upload-artifact@v3
22+
with:
23+
name: vscode-extension
24+
path: "*.vsix"

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1+
name: Deploy Extension
2+
13
on:
24
push:
35
tags:
46
- "*"
5-
name: Deploy Extension
7+
68
jobs:
79
deploy:
810
runs-on: ubuntu-latest
911
steps:
1012
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v1
13+
- uses: actions/setup-node@v4
1214
with:
1315
node-version: 16
16+
- name: Install dependencies
17+
run: npm install
1418
- name: Publish to Open VSX Registry
1519
uses: HaaLeo/publish-vscode-extension@v1
1620
id: publishToOVSX

0 commit comments

Comments
 (0)