Skip to content

Commit 77a87f0

Browse files
committed
Add semantic release
1 parent 4186905 commit 77a87f0

File tree

3 files changed

+2279
-0
lines changed

3 files changed

+2279
-0
lines changed

.github/workflows/release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [12.x]
15+
16+
steps:
17+
- uses: actions/checkout@v1
18+
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Cache node modules
25+
uses: actions/cache@v1
26+
with:
27+
path: ~/.npm
28+
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}-${{ matrix.node-version }}
29+
30+
- name: Install
31+
run: npm install
32+
33+
- name: Test
34+
run: npm test
35+
36+
- name: Build
37+
run: npm run build
38+
39+
- name: Semantic Release
40+
run: npm run semantic-release
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
43+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)