Skip to content

Commit 19cf277

Browse files
committed
Merge branch 'main' of https://github.com/ItzyBitzySpider/VulnGuard into main
2 parents d9e6868 + 63a26ad commit 19cf277

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)