Skip to content

Commit 3440e3e

Browse files
authored
chore: add semantic release (#4)
1 parent 5e209aa commit 3440e3e

File tree

4 files changed

+5852
-231
lines changed

4 files changed

+5852
-231
lines changed

.github/workflows/master_release.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Master Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Use Node.js
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 10.16.3
19+
- name: Install, build and test
20+
run: |
21+
npm install
22+
npm run build
23+
npm run example:build
24+
npm test
25+
- name: Generate changelog, release version to npm and Github
26+
run: npx semantic-release
27+
env:
28+
CI: true

.releaserc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"plugins": [
3+
"@semantic-release/commit-analyzer",
4+
"@semantic-release/release-notes-generator",
5+
"@semantic-release/changelog",
6+
"@semantic-release/npm",
7+
"@semantic-release/git"
8+
]
9+
}

0 commit comments

Comments
 (0)