Skip to content

Commit b3a7561

Browse files
committed
Update semantic-release.yml
1 parent 15df122 commit b3a7561

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/semantic-release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ jobs:
2929
with:
3030
fetch-depth: 0
3131
persist-credentials: false
32-
token: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Generate token
34+
id: generate_token
35+
uses: tibdex/github-app-token@v2
36+
with:
37+
app_id: ${{ secrets.BOT_APP_ID }}
38+
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
3339

3440
- name: Install pnpm
3541
uses: pnpm/action-setup@v4
@@ -50,7 +56,7 @@ jobs:
5056
id: semantic
5157
uses: cycjimmy/semantic-release-action@v4
5258
env:
53-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
5460

5561
- name: Install uv with caching
5662
if: steps.semantic.outputs.new_release_published == 'true'

0 commit comments

Comments
 (0)