Skip to content

Commit 6641e22

Browse files
committed
build: setup semantic-release
1 parent 067ae4e commit 6641e22

File tree

4 files changed

+18023
-8220
lines changed

4 files changed

+18023
-8220
lines changed

.github/workflows/release.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- rc
6+
- stable
7+
jobs:
8+
release:
9+
name: Release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: "lts/*"
20+
- name: Install dependencies
21+
run: npm ci
22+
- name: Build
23+
run: npm run build
24+
- name: Release
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}
27+
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
28+
run: npx semantic-release

.releaserc.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"branches": [
3+
"stable",
4+
{
5+
"name": "rc",
6+
"prerelease": true
7+
}
8+
],
9+
"plugins": [
10+
"@semantic-release/commit-analyzer",
11+
"@semantic-release/release-notes-generator",
12+
"@semantic-release/changelog",
13+
"@semantic-release/npm",
14+
"@semantic-release/git",
15+
"@semantic-release/github"
16+
]
17+
}

0 commit comments

Comments
 (0)