Skip to content

Commit e06518d

Browse files
committed
add publish action
1 parent d332cb0 commit e06518d

File tree

3 files changed

+27
-3
lines changed

3 files changed

+27
-3
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on:
2+
release:
3+
types:
4+
- released
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: Install Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: 18.x
17+
18+
- run: npm install
19+
20+
- name: Publish
21+
run: npm run deploy
22+
env:
23+
VSCE_PAT: ${{ secrets.VSCE_PAT }}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@
194194
"compile-tests": "tsc -p . --outDir out",
195195
"watch-tests": "tsc -p . -w --outDir out",
196196
"pretest": "npm run compile-tests && npm run compile && npm run lint",
197-
"lint": "eslint src --ext ts"
197+
"lint": "eslint src --ext ts",
198+
"deploy": "vsce publish"
198199
},
199200
"devDependencies": {
200201
"@types/glob": "^7.2.0",

0 commit comments

Comments
 (0)