Skip to content

Commit 7254d1d

Browse files
author
Charlike Mike Reagent
committed
fix: exit with 0 when no commits
1 parent 744f760 commit 7254d1d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ export default async function release(options) {
1919
const { rawCommits } = await gitCommitsSince(opt);
2020

2121
if (rawCommits.length === 0) {
22-
throw new Error('No commits since last tag.');
22+
console.log('No (new) commits since last(est) tag');
23+
proc.exit(0);
24+
return null;
2325
}
2426

2527
return detector(rawCommits, Object.assign({}, opt, { name: pkg.name }));

0 commit comments

Comments
 (0)