Skip to content

Commit 74a7959

Browse files
authored
Merge pull request #16 from garaemon/2022.06.05-github-action
Add github action
2 parents b54e639 + fa3b843 commit 74a7959

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI
2+
on: push
3+
4+
jobs:
5+
build:
6+
strategy:
7+
matrix:
8+
os: [macos-latest, ubuntu-latest, windows-latest]
9+
runs-on: ${{ matrix.os }}
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: ^14
15+
- run: npm install
16+
- run: npm test
17+
- run: npm install -g vsce
18+
- run: vsce package
19+

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v2
14+
with:
15+
node-version: ^14
16+
- run: npm install
17+
- run: npm test
18+
- run: npm install -g vsce
19+
- run: vsce package
20+
- run: vsce publish -p ${{ secrets.VSCE_PAT }}
21+

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)