Skip to content

Commit ba4e26e

Browse files
authored
Create release.yml
1 parent 362f314 commit ba4e26e

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: '20'
20+
21+
- name: Install dependencies
22+
run: yarn install
23+
24+
- name: Run Build
25+
run: yarn build
26+
27+
- name: Run tests
28+
run: yarn test
29+
30+
- name: Run semantic-release
31+
run: npx semantic-release
32+
env:
33+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)