From 68d41c0ff22fede57acab7a2bfed42df7814bb90 Mon Sep 17 00:00:00 2001 From: Logan Date: Fri, 13 Feb 2026 21:30:58 -0600 Subject: [PATCH] fix(ci): use PAT for semantic-release to trigger build workflow GITHUB_TOKEN events cannot trigger other workflows by design. Use a fine-grained PAT (RELEASE_TOKEN secret) so the tag push from semantic-release triggers the build.yml workflow. --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ddfdd05..81fe251 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,9 +20,12 @@ jobs: name: Semantic Release runs-on: ubuntu-latest steps: + # Use a PAT so that the tag push triggers the build workflow. + # GITHUB_TOKEN events don't trigger other workflows (by design). - uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ secrets.RELEASE_TOKEN }} - uses: actions/setup-node@v4 with: @@ -41,5 +44,5 @@ jobs: - name: Run semantic-release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} run: npx semantic-release