Skip to content

Commit 17c6b78

Browse files
Merge pull request #8 from kotarella1110/add-release-workflow
ci(release): add workflow
2 parents 4b57077 + ae9bb7c commit 17c6b78

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

Diff for: .github/workflows/release.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- '[0-9]+.x'
6+
- '[0-9]+.[0-9]+.x'
7+
- main
8+
- next
9+
- next-major
10+
- beta
11+
- alpha
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: 12.x
22+
- name: Install dependencies
23+
run: npm ci
24+
- name: Lint
25+
run: npm run lint
26+
- name: Test
27+
run: npm test
28+
env:
29+
CI: true
30+
- name: Build
31+
run: npm run build
32+
- name: Release
33+
run: npm run semantic-release
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)