Skip to content

Commit 93871ed

Browse files
author
Luca Forstner
committed
.
1 parent f9a65d3 commit 93871ed

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/bundler-plugin-core/src/plugins/release-management.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,16 @@ export function releaseManagementPlugin({
9292
await cliInstance.releases.setCommits(releaseName, setCommitsOption);
9393
} catch (e) {
9494
// shouldNotThrowOnFailure being present means that the plugin defaulted to `{ auto: true }` for the setCommitsOptions, meaning that wee should not throw when CLI throws because there is no repo
95-
if (!("shouldNotThrowOnFailure" in setCommitsOption)) {
96-
throw e;
97-
} else {
95+
if (
96+
"shouldNotThrowOnFailure" in setCommitsOption &&
97+
setCommitsOption.shouldNotThrowOnFailure
98+
) {
9899
logger.debug(
99100
"An error occurred setting commits on release (this message can be ignored unless you commits on release are desired):",
100101
e
101102
);
103+
} else {
104+
throw e;
102105
}
103106
}
104107
}

0 commit comments

Comments
 (0)