We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ab62757 + 93f6fd1 commit 7fe71a5Copy full SHA for 7fe71a5
1 file changed
.github/workflows/main.yml
@@ -0,0 +1,37 @@
1
+name: Publish Extension
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ workflow_dispatch: # Allow manual trigger
8
9
+jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v4
16
17
+ - name: Setup Node.js
18
+ uses: actions/setup-node@v4
19
+ with:
20
+ node-version: '18'
21
22
+ - name: Install dependencies
23
+ run: npm ci
24
25
+ - name: Compile
26
+ run: npm run compile
27
28
+ - name: Install vsce
29
+ run: npm install -g @vscode/vsce
30
31
+ - name: Package Extension
32
+ run: vsce package
33
34
+ - name: Publish to Visual Studio Marketplace
35
+ run: vsce publish -p ${{ secrets.VSC_PAT }}
36
+ env:
37
+ VSCE_PAT: ${{ secrets.VSC_PAT }}
0 commit comments