Skip to content

Commit ad69fad

Browse files
committed
ci: add release workflow
1 parent 33c1f32 commit ad69fad

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
id-token: write
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 22
25+
26+
- name: Setup Bun
27+
uses: oven-sh/setup-bun@v1
28+
with:
29+
bun-version: latest
30+
31+
- name: Install dependencies
32+
run: bun install
33+
34+
- name: Build
35+
run: bun run build
36+
37+
- name: Release
38+
run: bunx semantic-release
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
GIT_AUTHOR_NAME: github-actions[bot]
42+
GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com
43+
GIT_COMMITTER_NAME: github-actions[bot]
44+
GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com

0 commit comments

Comments
 (0)