Skip to content

Commit

Permalink
fix: exit with 0 when there's nothing to release (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunjae Lee authored Sep 28, 2019
1 parent 5998c92 commit 3ef15fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/shipjs/src/step/prepare/getNextVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import runStep from '../runStep';
export default ({ currentVersion, dir }) =>
runStep(
{ title: 'Calculating the next version.' },
({ print, warning, error, exitProcess }) => {
({ print, info, warning, exitProcess }) => {
const { version: nextVersion, ignoredMessages = [] } = getNextVersion(
currentVersion,
dir
Expand All @@ -18,8 +18,8 @@ export default ({ currentVersion, dir }) =>
ignoredMessages.forEach(message => print(` ${message}`));
}
if (nextVersion === null) {
print(error('Nothing to release!'));
exitProcess(1);
print(info('Nothing to release!'));
exitProcess(0);
}
return { nextVersion };
}
Expand Down

0 comments on commit 3ef15fa

Please sign in to comment.