Skip to content

Start a release only on a version bump - #415

Open
lahfir wants to merge 1 commit into
mainfrom
laf/release-version-gate
Open

lahfir wants to merge 1 commit into
mainfrom
laf/release-version-gate

Conversation

@lahfir

@lahfir lahfir commented Nov 17, 2026

Copy link
Copy Markdown
Contributor
  1. The release workflow released whenever a package in its publish list was missing from npm, so adding ai to that list in Register the ai service with routes, inspector, and contract tests #342 started a failing publish run on every push to main.
  2. A release now starts only when the emulate version changes, CI rejects a publish list that names a package npm has never seen, and ai leaves the list until it has a placeholder.
  3. Follows Register the ai service with routes, inspector, and contract tests #342.

The release workflow asked npm about every package in its publish list and released when any was missing. Adding the ai package to that list therefore started a publish run on every push to main, with no version bump, and the run failed because a release cannot create a package on npm.

A script now decides what a run does. A release starts when the version of emulate differs from npm. A release that stopped halfway is resumed for packages that exist on npm and are behind. A package npm has never seen starts nothing, and a registry error stops the run where it used to count as unpublished.

CI now fails when the publish list names a package npm has never seen, so the mistake shows in the pull request. The ai package leaves the list until it has a placeholder, and AGENTS.md describes the two steps for a new package.
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
emulate Ready Ready Preview, v0 Nov 17, 2026 6:01am UTC

This branch was successfully deployed

1 active deployment
Preview — 9d5f07e9 Deployed Nov 17, 2026 by vercel[bot]
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