File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build VSIX
2+
3+ on :
4+ pull_request :
5+ types : [labeled]
6+ branches : [ main ]
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ if : github.event.label.name == 'build'
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-file : ' package.json'
21+ cache : ' npm'
22+
23+ - name : Install dependencies
24+ run : npm ci
25+
26+ - name : Install all dependencies
27+ run : npm run install:all
28+
29+ - name : Build Extension
30+ run : npm run build
31+
32+ - name : Upload VSIX artifact
33+ uses : actions/upload-artifact@v4
34+ with :
35+ name : extension-vsix
36+ path : bin/*.vsix
37+
38+ - name : Comment PR with artifact link
39+ if : github.event_name == 'pull_request'
40+ uses : peter-evans/create-or-update-comment@v4
41+ with :
42+ issue-number : ${{ github.event.pull_request.number }}
43+ body : |
44+ Build successful! 🚀
45+ You can download the VSIX extension [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}).
You can’t perform that action at this time.
0 commit comments