Skip to content

Commit 131e856

Browse files
committed
enable release and pre-release actions.
1 parent 35411e7 commit 131e856

File tree

5 files changed

+1038
-23
lines changed

5 files changed

+1038
-23
lines changed

.github/workflows/pre-release.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: pre-release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags:
7+
- v*
8+
- v*.*.*
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
- name: Install Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 16.x
20+
- run: npm install
21+
- run: xvfb-run -a npm test
22+
if: runner.os == 'Linux'
23+
- run: npm test
24+
if: runner.os != 'Linux'
25+
- name: Pre release
26+
if: success() && startsWith(github.ref, 'refs/tags/')
27+
run: vsce package --no-yarn
28+
env:
29+
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}

.github/workflows/release.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
release:
7+
types:
8+
- created
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
- name: Install Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 16.x
20+
- name: Publish to vs marketplace
21+
if: success() && startsWith(github.ref, 'refs/tags/')
22+
run: npm run release
23+
env:
24+
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}

.vscodeignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ vsc-extension-quickstart.md
77
**/tsconfig.json
88
**/.eslintrc.json
99
**/*.map
10-
**/*.ts
10+
**/*.ts
11+
node_modules
12+
src/

0 commit comments

Comments
 (0)