Skip to content

Commit 0f1e6dd

Browse files
committed
release: 1.0.8
1 parent 677c6ab commit 0f1e6dd

2 files changed

Lines changed: 6978 additions & 6574 deletions

File tree

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on:
2+
push:
3+
tags:
4+
- 'v*' # 这段的意思是仅在出现名为 v 字符开头的tag时,触发此任务,如v1.2.1
5+
name: Publish
6+
jobs:
7+
# test: # test任务可选,视情况决定是否添加
8+
# runs-on: ubuntu-latest
9+
# steps:
10+
# - uses: actions/checkout@v2
11+
# - uses: actions/setup-node@v1
12+
# with:
13+
# node-version: 10
14+
# - run: npm i
15+
# - run: npm test
16+
17+
publish:
18+
# needs: test
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
# - uses: actions/setup-node@v1
23+
# with:
24+
# node-version: 10
25+
# registry-url: https://registry.npmjs.org/
26+
- run: npm i
27+
- run: npm publish # 如果发布之前需要构建,可添加prepublishOnly的生命周期脚本
28+
env:
29+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} # 上面在Github Secrets中设置的密钥

0 commit comments

Comments
 (0)