Skip to content

Commit 9f2bf91

Browse files
committed
chore: added auto deploy action
1 parent 65a56e1 commit 9f2bf91

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,14 @@ jobs:
1919
uses: softprops/action-gh-release@v2
2020
if: startsWith(github.ref, 'refs/tags/')
2121
with:
22-
files: '*.vsix'
22+
files: '*.vsix'
23+
deploy:
24+
runs-on: ubuntu-latest
25+
needs: build
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
- name: Publish
30+
run: npm run deploy
31+
env:
32+
VSCE_PAT: ${{ secrets.VSCE_PAT }}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@
305305
"test": "vscode-test",
306306
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\"",
307307
"format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md}\"",
308-
"package-vsix": "vsce package"
308+
"package-vsix": "vsce package",
309+
"deploy": "vsce publish"
309310
},
310311
"devDependencies": {
311312
"@types/ejs": "^3.1.5",

0 commit comments

Comments
 (0)