Skip to content

Commit 4b4b47a

Browse files
fixed a bug where the postversion script was run if the --commit option wasn't also enabled
1 parent 1f7defc commit 4b4b47a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

bin/bump.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,14 @@ else {
6060
});
6161
})
6262
.then(() => {
63-
api.git(manifests, options);
63+
if (options.commit || options.tag || options.push) {
64+
api.git(manifests, options);
65+
}
66+
else {
67+
manifests.forEach((manifest) => {
68+
api.runNpmScriptIfExists(manifest, 'postversion');
69+
});
70+
}
6471
})
6572
.catch((err) => {
6673
console.error(chalk.red(err.message));

0 commit comments

Comments
 (0)