Skip to content

Commit 8511b69

Browse files
committed
feat(release): introduce semantic-release
1 parent bf92ca4 commit 8511b69

File tree

4 files changed

+5873
-68
lines changed

4 files changed

+5873
-68
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
name: Publish
22

33
on:
4-
release:
5-
types: published
4+
push:
5+
branches:
6+
- master
67

78
jobs:
89
test:
910
runs-on: ubuntu-latest
1011
strategy:
1112
matrix:
12-
node-version: [10.x, 12.x, 14.x]
13+
node-version: [12.x, 14.x]
1314
env:
1415
TZ: Asia/Tokyo
1516
steps:
@@ -31,9 +32,9 @@ jobs:
3132
- uses: actions/setup-node@v1
3233
with:
3334
node-version: 14
34-
registry-url: https://registry.npmjs.org/
3535
- run: npm ci
3636
- run: npm run build
37-
- run: npm publish lib
37+
- run: npx semantic-release
3838
env:
39-
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
NPM_TOKEN: ${{ secrets.npm_token }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node-version: [10.x, 12.x, 14.x]
14+
node-version: [12.x, 14.x]
1515
env:
1616
TZ: Asia/Tokyo
1717
steps:

0 commit comments

Comments
 (0)