Skip to content

Commit 248d4b9

Browse files
committed
try to use semantic release
1 parent 782ec39 commit 248d4b9

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build-deploy:
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@v1
13+
14+
- name: Use Node.js
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 10.x
18+
19+
- name: yarn install, test and build
20+
run: |
21+
yarn
22+
yarn test
23+
yarn build:prod
24+
- name: Semantic Release
25+
uses: cycjimmy/semantic-release-action@v2
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
28+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.releaserc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"dryRun": false
3+
}

0 commit comments

Comments
 (0)