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
57 title: Version Packages57 title: Version Packages
58 createGithubReleases: false58 createGithubReleases: false
59 env:59 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 }}
61 67
62 - name: Publish @executor-js library packages68 - name: Publish @executor-js library packages
63 if: steps.changesets.outputs.hasChangesets == 'false'69 if: steps.changesets.outputs.hasChangesets == 'false'