Skip to content

Commit c533236

Browse files
njb90claude
andcommitted
ci: add workflow to build installable VSIX from feature branches
Runs on every push to non-main branches: lints, packages the extension with vsce, and uploads the .vsix as a downloadable artifact (14-day retention). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cc51261 commit c533236

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/build-vsix.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build VSIX
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
8+
jobs:
9+
build-vsix:
10+
name: Build installable 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+
cache: npm
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Run linting
27+
run: npm run lint
28+
29+
- name: Package extension
30+
run: npx vsce package --no-dependencies -o cloudinary-${{ github.ref_name }}.vsix
31+
32+
- name: Upload VSIX artifact
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: cloudinary-${{ github.ref_name }}
36+
path: cloudinary-${{ github.ref_name }}.vsix
37+
retention-days: 14

0 commit comments

Comments
 (0)