Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
runStep({ title: 'Calculating the next version.' }, () => {
const { version: nextVersion, ignoredMessages = [] } = getNextVersion(
revisionRange,
currentVersion,
dir
);
if (ignoredMessages.length > 0) {
print(
warning('The following commit messages out of convention are ignored:')
);
ignoredMessages.forEach(message => print(` ${message}`));
}
if (nextVersion === null) {
print(info('Nothing to release!'));
exitProcess(0);
}
return { nextVersion };
});