Skip to content

chore(release): align package.json with published v5.0.0 - #59

Merged
altaywtf merged 1 commit into
mainfrom
fix/release-version-writeback
Aug 19, 2026
Merged

chore(release): align package.json with published v5.0.0#59
altaywtf merged 1 commit into
mainfrom
fix/release-version-writeback

Conversation

@altaywtf

Copy link
Copy Markdown
Member

Problem

package.json says 4.4.2 while npm and GitHub releases sit at v5.0.0, and no chore: release write-back commit exists in history. Every consumer-facing version string and vp pack output is a full major behind.

Root cause

Same defect as pas-js#41. The v5.0.0 release (2026-03-19) ran semantic-release with no configuration: the repo had no .releaserc.json and no release key in package.json. The workflow passed @semantic-release/git through the action's extra_plugins input, but extra_plugins only installs packages — it does not add them to the plugin chain. semantic-release therefore ran its default plugin set (commit-analyzer, release-notes-generator, npm, github), which excludes the git plugin, so the version write-back never executed.

The later .releaserc.json configures @semantic-release/git correctly, and the release job now matches putio-sdk-typescript, where write-back commits provably land (chore(sdk): release 11.2.0 [skip ci], package.json = npm = 11.2.0). No release-triggering commit has landed here since March (only chore/ci/build), so the pipeline never got a chance to self-heal the stale version.

Solution

Align package.json to the published v5.0.0. semantic-release computes the next version from the v5.0.0 git tag (on main), so the next fix/feat release computes correctly and its write-back commit will land through the already-fixed pipeline.

chore commit type on purpose: merging this does not trigger a no-op publish.

Verification

vp run verify green locally: 3 test files, 10 tests passed.

Fixes #58

The v5.0.0 release ran semantic-release with no config file: the
workflow installed @semantic-release/git via extra_plugins but never
added it to the plugin chain, so the default plugin set ran and the
version write-back commit was never created. The current
.releaserc.json already lists the git plugin; this aligns the stale
4.4.2 version string with the published release.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 19, 2026 18:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Aligns the library’s declared package version with the already-published v5.0.0, so consumers and release tooling no longer see a stale package.json version.

Changes:

  • Bump package.json version from 4.4.2 to 5.0.0.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@altaywtf
altaywtf merged commit 7a28d6c into main Aug 19, 2026
3 checks passed
@altaywtf
altaywtf deleted the fix/release-version-writeback branch August 19, 2026 18:49
@putio-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 5.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix semantic-release version write-back (package.json 4.4.2 vs published v5.0.0)

2 participants