ci(release): open Version Packages PR via qa-wolf-ops App token#1378
Conversation
The default GITHUB_TOKEN cannot create pull requests under the org policy, so the changesets action failed at the "Create Release PR or Publish" step. Mint a short-lived qa-wolf-ops App token (same pattern as wolf-ops CI) and hand it to the changesets action so it can open the Version Packages PR — and so that PR triggers CI, which GITHUB_TOKEN-authored PRs do not.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe release workflow ( Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
What
Swap the token the changesets action uses from the default
GITHUB_TOKENto a short-lived qa-wolf-ops GitHub App token, minted at runtime withactions/create-github-app-token(pinned to v3.2.0). Mirrors the App-token pattern already used inwolf-opsCI (.github/workflows/claude-reviewer-assignment.yml).Why
The release workflow has been failing at Create Release PR or Publish:
The default
GITHUB_TOKENcannot open PRs under the org policy. The initial1.0.0release only shipped because the "Version Packages" PR (#1369) was opened manually after the action pushed the branch — the action's PR creation has never succeeded here. New changesets are now queued (→1.0.1) with no open version PR, so the action tries to create one again and fails.A second benefit: PRs opened with
GITHUB_TOKENdo not trigger downstream workflows, so the Version Packages PR would skip CI. An App-token-authored PR runs CI normally.Prerequisites
QA_WOLF_OPS_CLIENT_ID/QA_WOLF_OPS_PRIVATE_KEY— confirmed organization-managed (same secretswolf-opsuses).qawolf/cliwith Contents: write + Pull requests: write. Thecreate-github-app-tokenstep fails fast if the App is not installed on this repo, so the next release run is the decisive check.Test plan
mainwith a pending changeset opens achangeset-release/mainPR authored byqa-wolf-ops[bot]and that CI runs on it.