fix(releaseprep): green unchanged-version prepare

This commit is contained in:
Micheal Wilkinson
2026-03-20 18:52:34 +00:00
parent d1d5673460
commit 971a7744bf

View File

@@ -161,7 +161,7 @@ func updateVersionFile(rootDir, version string, options resolvedOptions) error {
replacement := strings.Replace(match[0], match[1], version, 1)
updated := strings.Replace(string(contents), match[0], replacement, 1)
if updated == string(contents) {
return fmt.Errorf("version value not found in %s", path)
return nil
}
if err := os.WriteFile(path, []byte(updated), 0o644); err != nil {