Skip to content

Commit 1bf19df

Browse files
committed
Fix release version fallback equality guard
1 parent d3d3f2a commit 1bf19df

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

rakelib/release.rake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,9 @@ def resolve_version_input(version_input, monorepo_root)
546546
# If the latest changelog version matches the current version but hasn't been
547547
# tagged yet, use it. This handles the case where the changelog was updated
548548
# and the version bumped in a prior step (e.g., RC → stable promotion).
549-
if changelog_version && !version_tagged?(monorepo_root, changelog_version)
549+
if changelog_version &&
550+
Gem::Version.new(changelog_version) == Gem::Version.new(current_version) &&
551+
!version_tagged?(monorepo_root, changelog_version)
550552
puts "Found untagged CHANGELOG.md version: #{changelog_version} (current: #{current_version})"
551553
return changelog_version
552554
end

0 commit comments

Comments
 (0)