Skip to content

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

Merged
RhysSullivan merged 1 commit intomainfrom
rs/release-pat
May 10, 2026
Merged

Use RELEASE_PAT for changesets/action so Version Packages PRs trigger CI#744
RhysSullivan merged 1 commit intomainfrom
rs/release-pat

Conversation

@RhysSullivan
Copy link
Copy Markdown
Owner

Summary

Swap GITHUB_TOKEN for secrets.RELEASE_PAT (with fallback) in the changesets/action step of release.yml. Falls back to GITHUB_TOKEN when the secret is unset, so forks and pre-secret states keep working.

Why

GitHub does not trigger downstream workflow runs from events caused by the default GITHUB_TOKEN. The Version Packages PR auto-opened by changesets/action was being authored by github-actions[bot] via that token, so neither pkg-pr-new nor CI ran on it. Reviewers couldn't preview-install the bundle that was about to publish.

With a PAT, the PR is authored by a real user and downstream workflows fire normally.

Setup needed (one-time)

Repo secret RELEASE_PAT must be set to a PAT (fine-grained or classic) with at minimum:

  • Contents: Read and write
  • Pull requests: Read and write

Scoped to this repo only (for fine-grained PATs). Already set in this repo.

Test plan

  • After merge, push a no-op changeset commit to main and confirm the resulting Version Packages PR has pkg-pr-new + CI runs without manual close/reopen

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud 1607db8 May 10 2026, 05:57 AM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing 1607db8 Commit Preview URL

Branch Preview URL
May 10 2026, 05:57 AM

@RhysSullivan RhysSullivan merged commit 69af8b8 into main May 10, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant