Skip to content

sdg(phase-11): fix the first-release no-op version bump in the Release workflow - #5

Merged
lzrscg merged 1 commit into
mainfrom
sdg/release-first-publish-fix
Jul 28, 2026
Merged

sdg(phase-11): fix the first-release no-op version bump in the Release workflow#5
lzrscg merged 1 commit into
mainfrom
sdg/release-first-publish-fix

Conversation

@lzrscg

@lzrscg lzrscg commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #4, surfaced by the live no-credential Release run (30397083855): when the computed release version equals package.json's version — exactly the first-release case (baseline 0.1.0, nothing published, releasing 0.1.0) — plain npm version fails with npm error Version not changed, killing the step before the publish attempt and before the instruction-bearing ::error:: message.

Fix: --allow-same-version on the bump, and the bump and npm publish grouped under one failure handler so any failure in the sequence emits the loud setup instructions. Verified: YAML parses, the step passes bash -n, npm version 0.1.0 --no-git-tag-version --allow-same-version succeeds on a 0.1.0 package, and a bump failure skips the publish while firing the handler. (The retired token workflow carried the same latent bug, masked by its secret-guard step.)

🤖 Generated with Claude Code

…e workflow

The live no-credential Release run (30397083855) surfaced a latent bug:
when the computed release version equals package.json's version — exactly
the first-release case — plain 'npm version' fails with 'Version not
changed', killing the step before the publish attempt and before the
instruction-bearing error message. Add --allow-same-version and group the
version bump and publish under one failure handler so any failure in the
sequence emits the loud setup instructions. (The retired token workflow
carried the same latent bug, masked by its secret guard.)

Co-Authored-By: Claude Fable 5 <[email protected]>
@lzrscg
lzrscg merged commit 172af61 into main Jul 28, 2026
3 checks passed
@lzrscg
lzrscg deleted the sdg/release-first-publish-fix branch July 28, 2026 21:40
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