We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d9e6868 + 63a26ad commit 19cf277Copy full SHA for 19cf277
.github/workflows/publish.yml
@@ -0,0 +1,31 @@
1
+on:
2
+ push:
3
+ branches:
4
+ - main
5
+ release:
6
+ types:
7
+ - created
8
+
9
+jobs:
10
+ build:
11
+ strategy:
12
+ matrix:
13
+ os: [macos-latest, ubuntu-latest, windows-latest]
14
+ runs-on: ${{ matrix.os }}
15
+ steps:
16
+ - name: Checkout
17
+ uses: actions/checkout@v3
18
+ - name: Install Node.js
19
+ uses: actions/setup-node@v3
20
+ with:
21
+ node-version: 16.x
22
+ - run: npm install
23
+ - run: xvfb-run -a npm test
24
+ if: runner.os == 'Linux'
25
+ - run: npm test
26
+ if: runner.os != 'Linux'
27
+ - name: Publish
28
+ if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
29
+ run: npm run deploy
30
+ env:
31
+ VSCE_PAT: ${{ secrets.VSCE_PAT }}
0 commit comments