Skip to content

Commit e24d05c

Browse files
committed
build: add semantic release
1 parent f014c4e commit e24d05c

File tree

4 files changed

+4608
-175
lines changed

4 files changed

+4608
-175
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
- name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: "lts/*"
19+
- name: Install dependencies
20+
run: npm install
21+
- name: Build
22+
run: npm run build
23+
- name: Release
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
26+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
27+
run: npx semantic-release

.releaserc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"branches": ["main"]
3+
}

0 commit comments

Comments
 (0)