Skip to content

ci(release): exempt the alpha promotion PR; no exemptions for forks - #380

Merged
jeffredodd merged 1 commit into
mainfrom
ci/changeset-check-promotion
Nov 8, 2026
Merged

jeffredodd merged 1 commit into
mainfrom
ci/changeset-check-promotion

Conversation

@jeffredodd

Copy link
Copy Markdown
Member

What

Two gaps in scripts/release/changeset-check.mjs. Both were found while porting this design to FiestaBoard (Fiestaboard/FiestaBoard#2430), where they are already fixed:

  • The promotion PR fails. Step 3.2 of docs/releasing.md opens a PR from alpha into main. It carries alpha's shipped changes, but those changesets were consumed by the prereleases into .changeset/pre/, so there is no top-level changeset. Head ref alpha is now exempt, next to main (syncs) and changeset-release/*.
  • Forks skip the check. Exemptions matched github.head_ref, which is only the branch name, so a contributor's fork PR from their main was waved through. Exemptions now apply only when head.repo.full_name is this repository; ci.yml passes HEAD_REPO.

CI and release scripts only, so no changeset is needed.

Verification

  • node --test scripts/release/tests/*.test.mjs: 33 pass, including new tests for the promotion exemption and for fork PRs on main, alpha and changeset-release/main.
  • eslint, prettier and actionlint report nothing.

🤖 Generated with Claude Code

The alpha -> main promotion carries alpha's shipped changes with no
top-level changeset (they were consumed into .changeset/pre/), so the
check would fail it. And head-ref exemptions matched the branch name
alone, so a fork PR from a contributor's own main skipped the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Visual regression report

✅ No visual changes across 3288 screenshot(s).

📦 Open the full visual report (artifact vrt-report.html) · workflow run

Baseline from this run · commit 478d477

@jeffredodd
jeffredodd merged commit 3b119af into main Nov 8, 2026
38 checks passed
@jeffredodd
jeffredodd deleted the ci/changeset-check-promotion branch November 8, 2026 03:37
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