Skip to content

Commit 1504efd

Browse files
Merge pull request #10 from wilsonneto-dev/wn/publish-pipeline
build: Add publish pipelkine
2 parents 79ca46f + 3733aba commit 1504efd

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/publish.yml

+40
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+
workflow_dispatch:
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: '20'
21+
22+
- name: Install vsce
23+
run: npm install -g vsce
24+
25+
- name: Install project dependencies
26+
run: npm install
27+
28+
- name: Package and publish VS Code extension
29+
run: |
30+
vsce package
31+
vsce publish -p ${{ secrets.MARKETPLACE_TOKEN }}
32+
33+
- name: Upload VSIX to GitHub Releases
34+
uses: actions/upload-release-asset@v1
35+
with:
36+
upload_url: ${{ steps.create_release.outputs.upload_url }}
37+
asset_path: './navigation-powerups.vsix'
38+
asset_name: 'navigation-powerups.vsix'
39+
asset_content_type: application/zip
40+

0 commit comments

Comments
 (0)