Skip to content

Commit

Permalink
release: fix releaser version bumping
Browse files Browse the repository at this point in the history
  • Loading branch information
loicrouchon committed Dec 31, 2023
1 parent 7da5ba7 commit 9fc1e20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/releaser/src/main/java/releaser/ReleaseCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void release() {
.map(Version::parse)
.orElse(baseVersion);
if (!Objects.equals(baseVersion, nextBaseVersion)) {
bumpVersion(nextBaseVersion.suffix("dev"));
bumpVersion(nextBaseVersion.suffix("SNAPSHOT"));
repo.push();
} else {
io.printf("%s %s%n", pad("Using base version:"), INFO.str(nextBaseVersion));
Expand Down Expand Up @@ -155,7 +155,7 @@ private void pull() {
}

private void handleNonExistingReleaseBranch(Version nextBaseVersion) {
Version nextVersion = nextBaseVersion.subversion("0").withoutSuffix();
Version nextVersion = nextBaseVersion.withoutSuffix();
String branch = repo.releaseBranch(nextVersion);
repo.createBranchAndSwitch(branch);
}
Expand Down

0 comments on commit 9fc1e20

Please sign in to comment.