From fad3f2c4ee1e241c619d47478061f813cc556d19 Mon Sep 17 00:00:00 2001 From: HiranoMasaaki Date: Sat, 17 Jan 2026 22:48:57 +0000 Subject: [PATCH] fix(release): use PAT for auto-merge to trigger Release workflow GITHUB_TOKEN doesn't trigger other workflows (GitHub security feature). Using PAT ensures the merge event triggers the Release workflow. Co-Authored-By: Claude Opus 4.5 --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14c2f679..c11c4e4b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,7 +49,9 @@ jobs: title: 'chore: version packages' commit: 'chore: version packages' env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Use PAT to trigger CI workflow on the created PR + # GITHUB_TOKEN doesn't trigger other workflows (GitHub security feature) + GITHUB_TOKEN: ${{ secrets.PAT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -57,4 +59,5 @@ jobs: if: steps.changesets.outputs.pullRequestNumber run: gh pr merge ${{ steps.changesets.outputs.pullRequestNumber }} --auto --squash env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Use PAT so the merge triggers the Release workflow + GH_TOKEN: ${{ secrets.PAT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}