Skip to content

Commit e1ba2cc

Browse files
author
wangshan
committed
chore: 构建过程或辅助工具的变动 包括但不限于文档、代码生成等)
1 parent df411b6 commit e1ba2cc

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/release.yml

+13-15
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,18 @@ jobs:
77
release:
88
name: Release
99
runs-on: ubuntu-18.04
10+
env:
11+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
12+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1013
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v2
13-
- name: Setup Node.js
14-
uses: actions/setup-node@v2
14+
- uses: actions/checkout@v2
1515
with:
16-
node-version: 12
17-
- name: SetUp Depbot
18-
uses: bahmutov/npm-install@v1 # 使用
19-
- name: Install dependencies
20-
run: npm ci
21-
- name: Release
22-
run: npx semantic-release
23-
run: npm run version
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
26-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
16+
token: ${{ env.GITHUB_TOKEN }}
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: 14
20+
cache: npm
21+
- uses: bahmutov/npm-install@v1 # 使用
22+
- run: npm ci
23+
- run: npx semantic-release
24+
- run: npm run version

0 commit comments

Comments
 (0)