Skip to content

Commit 618ce89

Browse files
grdsdevclaude
andcommitted
ci(release): use GitHub App token in release-prepare for PR creation
GITHUB_TOKEN is not permitted to create PRs in this repo. Switch to the GitHub App token (same pattern as release-tag and release-publish) so melos-action can successfully open the release PR. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 711e5c9 commit 618ce89

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release-prepare.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,18 @@ jobs:
2323
runs-on: ubuntu-latest
2424
timeout-minutes: 15
2525
steps:
26+
- name: Generate token
27+
id: app-token
28+
uses: actions/create-github-app-token@v2
29+
with:
30+
app-id: ${{ secrets.APP_ID }}
31+
private-key: ${{ secrets.PRIVATE_KEY }}
32+
2633
- name: Checkout
2734
uses: actions/checkout@v6
2835
with:
2936
fetch-depth: 0
30-
token: ${{ secrets.GITHUB_TOKEN }}
37+
token: ${{ steps.app-token.outputs.token }}
3138

3239
- name: Setup Flutter
3340
uses: subosito/flutter-action@v2

0 commit comments

Comments
 (0)