Skip to content

Commit b27cab9

Browse files
grdsdevclaude
andauthored
ci(release): use GitHub App token in release-prepare for PR creation (#1317)
* 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> * ci(release): switch to grdsdev/melos-action fork with token support Use grdsdev/melos-action@feat/custom-token-for-create-pr across all three release workflows. Pass the App token to the melos-action in release-prepare so peter-evans/create-pull-request uses it directly — the fork's token input is the correct fix for the GITHUB_TOKEN PR creation restriction. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * ci(release): pin melos-action to upstream v3.6.0 SHA The fork's token input was merged upstream as v3.6.0. Switch all three release workflows back to bluefireteam/melos-action, pinned to the release SHA for supply-chain safety. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 61f7cd1 commit b27cab9

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/release-prepare.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,29 @@ 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
3441
with:
3542
cache: true
3643

3744
- name: Setup Melos
38-
uses: bluefireteam/melos-action@v3
45+
uses: bluefireteam/melos-action@705015c3d2bc4ab94201ac24accb2bbe070cf533 # v3.6.0
3946
with:
4047
run-versioning: ${{ inputs.prerelease == false }}
4148
run-versioning-prerelease: ${{ inputs.prerelease == true }}
4249
run-versioning-graduate: ${{ inputs.graduate == true }}
4350
create-pr: true
51+
token: ${{ steps.app-token.outputs.token }}

.github/workflows/release-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
cache: true
4545

4646
- name: Bootstrap with Melos
47-
uses: bluefireteam/melos-action@v3
47+
uses: bluefireteam/melos-action@705015c3d2bc4ab94201ac24accb2bbe070cf533 # v3.6.0
4848

4949
- name: Publish dry run
5050
run: melos publish --scope ${{ inputs.package-name }} --dry-run

.github/workflows/release-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
cache: true
3737

3838
- name: Setup Melos
39-
uses: bluefireteam/melos-action@v3
39+
uses: bluefireteam/melos-action@705015c3d2bc4ab94201ac24accb2bbe070cf533 # v3.6.0
4040
with:
4141
tag: true
4242
- name: Trigger publish workflows

0 commit comments

Comments
 (0)