Skip to content

Commit

Permalink
changed order to make releases more clean
Browse files Browse the repository at this point in the history
  • Loading branch information
kilork committed Jan 22, 2025
1 parent d2d7b2a commit 72c9f0b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -872,16 +872,8 @@ class Updater {
});
}

if (options.gitTag) {
await this.git.tag({
code: `v${milestoneVersion.toString()}`,
message: `Keycloak Admin REST API v${milestoneVersion.toString()}`,
});
}

if (options.gitPush) {
await this.git.push();
await this.git.push(["--tag"]);
}

if (options.createReleasePullRequest) {
Expand Down Expand Up @@ -922,6 +914,16 @@ class Updater {
await this.mergePullRequest();
}

if (options.gitTag) {
await this.git.tag({
code: `v${milestoneVersion.toString()}`,
message: `Keycloak Admin REST API v${milestoneVersion.toString()}`,
});
if (options.gitPush) {
await this.git.push(["--tag"]);
}
}

if (options.gitRelease) {
const releaseVersion = `v${milestoneVersion.toString()}`;
await this.git.createRelease({
Expand Down

0 comments on commit 72c9f0b

Please sign in to comment.