Skip to content

Commit b8200dd

Browse files
git actions workflow for building
1 parent 44ed943 commit b8200dd

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build-vsix.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build VSIX on Main Merge
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- feature/build-automation
8+
9+
jobs:
10+
build-vsix:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '20'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Build project
26+
run: npm run build
27+
28+
- name: Install vsce
29+
run: npm install -g @vscode/vsce
30+
31+
- name: Package VSIX
32+
run: vsce package
33+
34+
- name: Upload VSIX artifact
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: contrast-vscode-plugin.vsix
38+
path: '*.vsix'

0 commit comments

Comments
 (0)