Skip to content

Commit 198e2c9

Browse files
committed
ci: 👷 新增发布流水线
Signed-off-by: wss <wssgryx@163.com>
1 parent 0e11e96 commit 198e2c9

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/npm-publish.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Node.js Package
2+
3+
on:
4+
push:
5+
tags:
6+
- "release/**"
7+
8+
jobs:
9+
publish-npm:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v2
14+
with:
15+
node-version: 18
16+
registry-url: https://registry.npmjs.org/
17+
- name: build
18+
run: npm install && npm run build
19+
- name: publish
20+
run: npm publish
21+
env:
22+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)