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.
This commit is contained in:
2026-02-13 21:38:59 -06:00
parent c0f8d357a4
commit 68d41c0ff2
+4 -1
View File
@@ -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