Skip to content

Commit 776557e

Browse files
committed
ci: replace release-please with semantic release
1 parent 9c928fd commit 776557e

4 files changed

Lines changed: 1860 additions & 60 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
9+
permissions:
10+
contents: read
11+
id-token: write
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
release:
19+
runs-on: ubuntu-latest
20+
environment: semantic-release
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
27+
- name: Setup pnpm
28+
uses: pnpm/action-setup@v4
29+
with:
30+
version: 10.24.0
31+
run_install: false
32+
33+
- name: Setup Node.js
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: 22.21.1
37+
cache: pnpm
38+
39+
- name: Install dependencies
40+
run: pnpm install --frozen-lockfile
41+
42+
- uses: actions/create-github-app-token@v2
43+
id: app-token
44+
with:
45+
app-id: ${{ secrets.APP_ID }}
46+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
47+
48+
- name: Semantic Release
49+
uses: cycjimmy/semantic-release-action@v4
50+
id: semantic
51+
env:
52+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
53+
SEMANTIC_RELEASE_DEBUG: true

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@
5555
"tsdown": "0.18.3",
5656
"typescript": "5.4.5",
5757
"vitest": "1.5.0",
58-
"node-fetch": "3.3.2"
58+
"node-fetch": "3.3.2",
59+
"@semantic-release/changelog": "6.0.3",
60+
"@semantic-release/git": "10.0.1",
61+
"@semantic-release/github": "11.0.1",
62+
"@semantic-release/npm": "12.0.1",
63+
"semantic-release": "24.2.3"
5964
}
6065
}

0 commit comments

Comments
 (0)