Skip to content

Commit d19e840

Browse files
committed
Adding workflow
1 parent 313e011 commit d19e840

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build VS Code Extension
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Use Node.js
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: '18'
19+
20+
- name: Install dependencies
21+
run: |
22+
if [ ! -f package-lock.json ]; then
23+
npm install
24+
fi
25+
npm ci
26+
27+
- name: Install vsce
28+
run: npm install -g @vscode/vsce
29+
30+
- name: Compile TypeScript
31+
run: npm run compile
32+
33+
- name: Package Extension
34+
run: npx @vscode/vsce package --baseContentUrl=https://github.com/Ganjai-Labs/code-visualizer --baseImagesUrl=https://github.com/Ganjai-Labs/code-visualizer
35+
36+
- name: Upload VSIX as Artifact
37+
uses: actions/upload-artifact@v3
38+
with:
39+
name: extension
40+
path: "*.vsix"

0 commit comments

Comments
 (0)