Skip to content

Commit 0939910

Browse files
authored
ci(release): defined a github workflow to release with semantic-release (#923)
1 parent 757a806 commit 0939910

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/release.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release
2+
"on":
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
release:
8+
name: release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
cache: npm
15+
node-version: lts/*
16+
- run: npm clean-install
17+
- run: npx semantic-release
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)