Skip to content

Commit f207771

Browse files
github-actions[bot]shaftoe
authored andcommitted
feat: add semantic-release for automated versioning
1 parent d50a043 commit f207771

4 files changed

Lines changed: 934 additions & 26 deletions

File tree

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- v2
7+
8+
permissions:
9+
id-token: write
10+
contents: write
11+
12+
jobs:
13+
test:
14+
uses: ./.github/workflows/build_test_coverage.yml
15+
with:
16+
e2e: true
17+
secrets:
18+
token: ${{ secrets.API_KEY }}
19+
20+
release:
21+
name: semantic-release
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v6
27+
28+
- name: Setup Bun
29+
uses: oven-sh/setup-bun@v2
30+
with:
31+
bun-version: latest
32+
33+
- name: Install dependencies
34+
run: bun install
35+
36+
- name: Build
37+
run: bun run package
38+
39+
- name: Semantic Release
40+
uses: cycjimmy/semantic-release-action@v6
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"branches": ["v2"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
[
7+
"@semantic-release/github",
8+
{
9+
"assets": ["dist/*"],
10+
"successComment": false
11+
}
12+
]
13+
],
14+
"tagFormat": "v${version}",
15+
"npmPublish": false
16+
}

0 commit comments

Comments
 (0)