Skip to content

Commit 69b4af7

Browse files
committed
[+] Add github actions release and publish
1 parent e5a9187 commit 69b4af7

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release and Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 16
18+
- name: Install the dependencies
19+
run: npm install
20+
21+
- name: Install vsce
22+
run: npm install -g vsce
23+
24+
- name: Release
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
27+
run: npx semantic-release
28+
29+
- name: Publish
30+
run: vsce publish -p $VSCE_TOKEN
31+
env:
32+
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}

0 commit comments

Comments
 (0)