Skip to content

Fix release-it when version already bumped#12

Merged
osolmaz merged 1 commit into
mainfrom
feat/fix-release-same-version
Feb 18, 2026
Merged

Fix release-it when version already bumped#12
osolmaz merged 1 commit into
mainfrom
feat/fix-release-same-version

Conversation

@dutifulbob
Copy link
Copy Markdown
Member

Problem

Our release workflow pre-bumps package.json before running release-it. release-it then invokes npm version with the same version that is already in package.json, which causes npm to fail with:

Version not changed

Fix

Set npm.allowSameVersion: true in .release-it.json so npm version is allowed to run even when the target version matches the current one.

This prevents the release job from failing when the version was already set earlier in the workflow.

@osolmaz osolmaz merged commit d7957b2 into main Feb 18, 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.

2 participants