Skip to content

Commit b239b38

Browse files
authored
Merge pull request #5 from KebanFiru/feat/implement_basic_usage
Add GitHub Actions workflow for publishing VS Code extension
2 parents 39423d8 + 55f1066 commit b239b38

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish VS Code Extension
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency:
9+
group: marketplace-publish-main
10+
cancel-in-progress: true
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 22
26+
cache: npm
27+
28+
- name: Install dependencies
29+
run: npm install --frozen-lockfile
30+
31+
- name: Build
32+
run: npm run compile
33+
34+
- name: Lint
35+
run: npm run lint
36+
37+
- name: Publish to VS Code Marketplace
38+
env:
39+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
40+
run: npx @vscode/vsce publish -p "$VSCE_PAT"

0 commit comments

Comments
 (0)