Skip to content

Bump to 1.0.7 and guard publish against tag/version drift#37

Merged
ls-simon-he merged 1 commit into
masterfrom
bump-version-1.0.7
Apr 23, 2026
Merged

Bump to 1.0.7 and guard publish against tag/version drift#37
ls-simon-he merged 1 commit into
masterfrom
bump-version-1.0.7

Conversation

@ls-simon-he
Copy link
Copy Markdown
Collaborator

Summary

  • Bump package.json / package-lock.json to 1.0.7 to recover from the broken v1.0.6 release (tag was cut without bumping the version, so CI silently republished 1.0.5 to GitHub Packages and exited 0).
  • Add a pre-publish step in .github/workflows/npmpublish.yml that asserts package.json.version matches the release tag (stripped of the v prefix) and fails the job otherwise.

Context

  • v1.0.6 tag points to 88a0841, but package.json at that commit is still 1.0.5.
  • Registry currently has: 1.0.1, 1.0.4, 1.0.5 — no 1.0.6 will ever exist.
  • The existing v1.0.6 tag and GitHub release are left in place as artifacts; a fresh v1.0.7 tag/release after this merges will publish correctly.

Release steps after merge

  1. Pull master.
  2. Tag: git tag -a v1.0.7 -m "v1.0.7" && git push origin v1.0.7
  3. Create a GitHub release for v1.0.7 — the workflow will publish @kounta/db.js@1.0.7.

If anyone forgets to bump package.json next time, the new guard will fail the publish job with a clear error instead of silently no-op'ing.

Test plan

  • CI build job passes on this PR.
  • After merge + tag + release, the publish job runs the new guard step and succeeds.
  • @kounta/db.js@1.0.7 appears in GitHub Packages.
  • (Negative test, optional) Confirm the guard fails loudly if a future release tag mismatches package.json.

🤖 Generated with Claude Code

v1.0.6 was tagged without bumping package.json, so CI silently republished
1.0.5 to the registry and exited 0. Bumping to 1.0.7 to recover, and adding
a pre-publish check that fails the release job when package.json.version
does not match the release tag.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ls-simon-he ls-simon-he merged commit 668c9a6 into master Apr 23, 2026
6 checks passed
@ls-simon-he ls-simon-he deleted the bump-version-1.0.7 branch April 23, 2026 03:44
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