Skip to content

fix: set npm version from the GitHub Release tag - #5

Merged
judsd merged 1 commit into
masterfrom
fix/release-versioning
Sep 19, 2026
Merged

judsd merged 1 commit into
masterfrom
fix/release-versioning

Conversation

@judagent

@judagent judagent Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

The v26.9.2 publish failed because the workflow required package.json to already match the tag (26.9.1 vs v26.9.2). This matches ocInsights: a GitHub Release is the source of truth, and the workflow overwrites package.json version from the tag before pack/publish.

  • Trigger publish on release: published (a tag push alone does nothing)
  • Resolve CalVer vYY.M.patch (optional -prerelease) via scripts/releaseVersion.ts
  • Dist-tag next for GitHub prereleases or a -suffix version; otherwise latest
  • Tarball check asserts the packed version equals the release version
  • Leave package.json at the last published version (26.9.1); do not bump it for a release

After merge, cut a new GitHub Release (v26.9.3). Re-running the failed job would reuse the old commit and the old workflow. The existing v26.9.2 tag/release can be deleted later if you want; it never reached npm.

Models: xai/grok-4.6:default, anthropic/claude-fable-5-1:xhigh

The v26.9.2 publish failed because package.json still said 26.9.1.
Match ocInsights: the release tag is the source of truth, overwrite
package.json at publish time, and use dist-tag next for prereleases.
@judagent judagent Bot assigned judsd Sep 19, 2026
@judsd
judsd merged commit 6d65c53 into master Sep 19, 2026
4 checks passed
@judsd
judsd deleted the fix/release-versioning branch September 19, 2026 22:55
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