Skip to content

fix(release): build no candidate while changesets wait for the version PR - #153

Merged
devnacho merged 1 commit into
mainfrom
fix/candidate-waits-for-version-pr
Oct 16, 2026
Merged

devnacho merged 1 commit into
mainfrom
fix/candidate-waits-for-version-pr

Conversation

@devnacho

Copy link
Copy Markdown
Contributor

Candidate run 38829436447 was versioned 0.1.0-alpha.16, but it contained the screenshot checks (#148) and the Jev vision fallback (#151), whose changesets the version PR had not applied yet. Publishing it would have shipped a breaking vision change under the alpha.16 changelog, which omits it.

needs-candidate.mjs now skips the candidate build while .changeset/ holds changesets that pre.json doesn't list as applied, and prints which ones. Once the version PR merges, the next CI run on main builds the candidate as before.

Checked locally:

  • node --test scripts/release/*.test.mjs: 7 pass.
  • needs-candidate.mjs on current main: "Build candidate for unpublished 0.1.0-alpha.17".
  • With .changeset/ from 45a1ec0: "No candidate … Not yet versioned: jev-vision-fallback, screenshot-checks".

Merge after alpha.17 is published. Merging earlier puts a newer commit on main, which replaces the alpha.17 candidate that's in UAT.

https://ampcode.com/threads/T-09962b75-0e4a-44c9-b9e2-bea9aff8ac44

…n PR

Candidate 38829436447 was versioned 0.1.0-alpha.16 but contained the
screenshot and Jev vision changes, whose changesets the version PR had not
applied yet. Publishing it would have shipped a breaking change under a
changelog that omits it. needs-candidate now skips the build while
.changeset/ holds changesets that pre.json does not list as applied.

Amp-Thread-ID: https://ampcode.com/threads/T-09962b75-0e4a-44c9-b9e2-bea9aff8ac44
Co-authored-by: Ignacio Gutierrez <nachojgutierrez@gmail.com>
@devnacho
devnacho merged commit d423c0b into main Oct 16, 2026
10 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.

2 participants