Skip to content

Commit 86e2e5a

Browse files
committed
chore: Auto publish on tag
1 parent 2a409b7 commit 86e2e5a

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/publish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,40 @@ jobs:
2828
run: conventional-github-releaser -p angular
2929
env:
3030
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.RELEASE_GITHUB_TOKEN}}
31+
32+
publish:
33+
runs-on: ubuntu-latest
34+
needs:
35+
- release
36+
37+
steps:
38+
- uses: actions/checkout@v4
39+
40+
- name: Install pnpm
41+
uses: pnpm/action-setup@v4
42+
43+
- name: Setup Node.js
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: "22"
47+
cache: pnpm
48+
49+
- name: Install dependencies
50+
run: pnpm i
51+
52+
- name: Build
53+
run: pnpm build
54+
55+
- name: Publish to Open VSX Registry
56+
uses: HaaLeo/publish-vscode-extension@v1
57+
with:
58+
dependencies: false
59+
pat: ${{ secrets.OPEN_VSX_TOKEN }}
60+
61+
- name: Publish to Visual Studio Marketplace
62+
uses: HaaLeo/publish-vscode-extension@v1
63+
with:
64+
dependencies: false
65+
pat: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}
66+
registryUrl: https://marketplace.visualstudio.com
67+
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Go to component definition in Vue 2 SFC",
66
"icon": "assets/icon.png",
77
"license": "MIT",
8-
"version": "1.1.1",
8+
"version": "1.1.2",
99
"packageManager": "[email protected]",
1010
"author": "Daniel Petr Honys <[email protected]>",
1111
"homepage": "https://github.com/DPHonys/vue2-sfc-goto-definition#readme",

0 commit comments

Comments
 (0)