Skip to content

fix(ci): sync npm version from git tag at publish time - #22

Merged
bearmug merged 1 commit into
mainfrom
fix/dynamic-version-publish
May 13, 2026
Merged

fix(ci): sync npm version from git tag at publish time#22
bearmug merged 1 commit into
mainfrom
fix/dynamic-version-publish

Conversation

@bearmug

@bearmug bearmug commented May 13, 2026

Copy link
Copy Markdown
Contributor

Problem

The publish workflow reads the version from package.json, which was still 0.1.0 when the v0.2.0 release was created. npm refused to publish because 0.1.0 already exists.

Fix

Read the version from the git tag (e.g. v0.2.0) and sync it into package.json at publish time via npm version --no-git-tag-version. Same dynamic version approach used in tradingview-mcp.

After merge

Move the existing v0.2.0 tag to the merge commit so the publish workflow picks it up:

git tag -d v0.2.0
git tag v0.2.0 <merge-commit>
git push origin v0.2.0 --force

Instead of requiring manual version bumps, the publish workflow now
reads the version from the release tag (vX.Y.Z) and updates package.json
before publishing. Same approach as tradingview-mcp.
@bearmug
bearmug merged commit f0e825b into main May 13, 2026
1 check passed
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