Skip to content

Commit 0e0d5a7

Browse files
committed
ci(workflows): added GitHub Actions publish workflow for VS Code extension
1 parent b837375 commit 0e0d5a7

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish Extension
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 20
17+
18+
- run: npm ci
19+
20+
- run: npm run check-types
21+
22+
- name: Sync version from tag
23+
run: npm version ${GITHUB_REF#refs/tags/v} --no-git-tag-version
24+
25+
- name: Publish to Marketplace
26+
run: npx @vscode/vsce publish --no-dependencies
27+
env:
28+
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 commit comments

Comments
 (0)