File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments