Skip to content

Offset preview run number to stay ahead of pre-merge versions - #192

Merged
MikeAlhayek merged 1 commit into
mainfrom
claude/npm-preview-version-offset
Sep 14, 2026
Merged

MikeAlhayek merged 1 commit into
mainfrom
claude/npm-preview-version-offset

Conversation

@MikeAlhayek

Copy link
Copy Markdown
Member

Follow-up to #191. OIDC trusted publishing now works end-to-end 🎉 — but merging the two workflows into publish_npm.yml reset GitHub's run_number to 1, so the first successful publish was 2.0.0-preview.5, which is lower than the 2.0.0-preview.175 the old workflow had reached (.5 < .175 in semver).

Add 180 to the run number for preview builds so the .N suffix stays monotonically increasing and above the last published preview. The next preview publish will be 2.0.0-preview.18N (run_number + 180), restoring correct ordering; the stray .5 stays in the registry but is superseded on the preview dist-tag by the next publish.

Release versions are unaffected — they come from the git tag, not the run number.

🤖 Generated with Claude Code

Merging the two publish workflows into publish_npm.yml reset GitHub's
run_number to 1, so the first OIDC publish produced 2.0.0-preview.5 -- lower
than the 2.0.0-preview.175 the old workflow had reached. Add 180 to the run
number so the .N suffix stays monotonic and above the last published preview.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@MikeAlhayek
MikeAlhayek merged commit d3d64b1 into main Sep 14, 2026
9 checks passed
@MikeAlhayek
MikeAlhayek deleted the claude/npm-preview-version-offset branch September 14, 2026 23:39
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