History

Use RELEASE_PAT for changesets/action so Version Packages PRs trigger CI

Rhys Sullivan committed 6 months ago

Commit 1607db81 parent 8ec80de1 file · +7 −1Browse files

Showing the changes to .github (1 of 1 file). Show all

Unified · Split

.github/workflows/release.yml+7−1
@@ -57,7 +57,13 @@ jobs: · 56 unmodified lines
5757 title: Version Packages
5858 createGithubReleases: false
5959 env:
60− GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+ # PAT (RELEASE_PAT) so the auto-opened Version Packages PR
61+ # triggers downstream workflows (pkg-pr-new, CI). PRs authored
62+ # by the default GITHUB_TOKEN do not trigger other workflows by
63+ # GitHub design. Falls back to GITHUB_TOKEN when the secret is
64+ # not set, so the workflow keeps working in forks / before the
65+ # secret is configured.
66+ GITHUB_TOKEN: ${{ secrets.RELEASE_PAT || secrets.GITHUB_TOKEN }}
6167
6268 - name: Publish @executor-js library packages
6369 if: steps.changesets.outputs.hasChangesets == 'false'