Skip to content

Commit

Permalink
fix: Allow whatBump to return undefined to skip versioning (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackclaws authored Oct 21, 2024
1 parent 2f1dc1e commit 3301fbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ class ConventionalChangelog extends Plugin {

let { releaseType } = result;

if (releaseType == undefined) {
return;
}

if (increment) {
this.log.warn(`The recommended bump is "${releaseType}", but is overridden with "${increment}".`);
releaseType = increment;
Expand Down

0 comments on commit 3301fbe

Please sign in to comment.