diff --git a/lib/index.js b/lib/index.js index 18d13c3e..20aca242 100644 --- a/lib/index.js +++ b/lib/index.js @@ -77,16 +77,17 @@ const runTasks = async (opts, di) => { const action = config.isIncrement ? 'release' : 'update'; const suffix = version && config.isIncrement ? `${latestVersion}...${version}` : `currently at ${latestVersion}`; - if (!config.isReleaseVersion && !config.isChangelog) { - log.obtrusive(`🚀 Let's ${action} ${name} (${suffix})`); - - log.preview({ title: 'changelog', text: changelog }); - } - if (config.isIncrement) { version = version || (await reduceUntil(plugins, plugin => plugin.getIncrementedVersion(incrementBase))); } + if (!version) { + log.obtrusive(`No new version to release`); + } else if (!config.isReleaseVersion && !config.isChangelog) { + log.obtrusive(`🚀 Let's ${action} ${name} (${suffix})`); + log.preview({ title: 'changelog', text: changelog }); + } + if (config.isReleaseVersion) { console.log(version); process.exit(0);