We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 39423d8 + 55f1066 commit b239b38Copy full SHA for b239b38
1 file changed
.github/workflows/publish.yml
@@ -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