Skip to content

fix(release): sync plugin + README versions during release cut - #21

Merged
owrede merged 1 commit into
mainfrom
fix/release-script-version-sync
Jul 3, 2026
Merged

fix(release): sync plugin + README versions during release cut#21
owrede merged 1 commit into
mainfrom
fix/release-script-version-sync

Conversation

@owrede

@owrede owrede commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Problem

scripts/release.mjs runs npm version which bumps package.json only.
But src/version-consistency.test.ts (Issue #14 / P4) requires
plugin/package.json, plugin/manifest.json, and the README
Latest: **vX.Y.Z** badge to all equal the CLI version.

On the v2.3.1 cut this drift failed publish.yml's Test step after the
tag was already pushed
— no npm publish or GitHub Release happened, and it
required a manual sync + tag-move to recover. Left unfixed, every future
npm run release hits the same wall.

Fix

Add Phase 3b to the release script: right after the version bump, mirror
the version into the two plugin JSON files and the README badge
(fail-fast if the badge marker is absent), and stage all three in the
release commit so the tagged commit is internally consistent.

Verification

  • Ran the sync logic in isolation against the real files at a scratch version:
    plugin package, manifest, and README all synced; the three consistency
    assertions pass (the CHANGELOG assertion is handled by the existing Phase 4).
  • Reverted the scratch mutations; working tree clean.
  • node --check OK · prettier clean · regex matches the real README line and
    rejects a missing marker.

No production code changes — release tooling only.

🤖 Generated with Claude Code

`npm version` in the release script bumped package.json only, but
src/version-consistency.test.ts requires plugin/package.json,
plugin/manifest.json, and the README `Latest: **vX.Y.Z**` badge to equal
the CLI version. The mismatch failed publish.yml's Test step AFTER the
v2.3.1 tag was already pushed, forcing a manual sync + tag move.

Add Phase 3b: after the version bump, mirror the new version into the two
plugin JSON files and the README badge (fail-fast if the badge marker is
missing), and stage all three in the release commit so the tagged commit
is internally consistent and CI stays green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@owrede
owrede merged commit 48865c4 into main Jul 3, 2026
2 checks passed
@owrede
owrede deleted the fix/release-script-version-sync branch July 3, 2026 14:34
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