Skip to content

Commit

Permalink
Fix release type for pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Jan 9, 2022
1 parent 20bf5dc commit 1b1c83d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ConventionalChangelog extends Plugin {
if (increment && semver.valid(increment)) {
resolve(increment);
} else if (isPreRelease) {
const type = increment ? `pre${releaseType}` : 'prerelease';
const type = releaseType ? `pre${releaseType}` : 'prerelease';
resolve(semver.inc(latestVersion, type, preReleaseId));
} else if (releaseType) {
resolve(semver.inc(latestVersion, releaseType, preReleaseId));
Expand Down

0 comments on commit 1b1c83d

Please sign in to comment.