Skip to content

Commit

Permalink
fix(version): Fix crash when using gitSignTag with independent ve…
Browse files Browse the repository at this point in the history
…rsioning mode (#3832)
  • Loading branch information
squidfunk committed Sep 11, 2023
1 parent 4843c3c commit 4940f2d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions libs/commands/version/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -850,9 +850,13 @@ class VersionCommand extends Command {
if (await this.hasChanges()) {
await gitCommit(message, this.gitOpts, this.execOpts);
}
await Promise.all(
tags.map((tag) => gitTag(tag, this.gitOpts, this.execOpts, this.options.gitTagCommand))
);
if (this.gitOpts.signGitTag) {
for (const tag in tags) await gitTag(tag, this.gitOpts, this.execOpts, this.options.gitTagCommand);
} else {
await Promise.all(
tags.map((tag) => gitTag(tag, this.gitOpts, this.execOpts, this.options.gitTagCommand))
);
}

return tags;
}
Expand Down

0 comments on commit 4940f2d

Please sign in to comment.