Skip to content

Commit cbcc8ed

Browse files
authored
feat(package.json): semantic release (#41)
1 parent 8051c5d commit cbcc8ed

File tree

3 files changed

+23707
-16388
lines changed

3 files changed

+23707
-16388
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release npm package
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
- uses: actions/setup-node@v1
15+
with:
16+
node-version: "16.x"
17+
- run: npm install
18+
- run: npm run check
19+
- run: npm run dist --if-present
20+
- run: npx semantic-release
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)