aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/monorepo-scripts/src/publish_release_notes.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/monorepo-scripts/src/publish_release_notes.ts b/packages/monorepo-scripts/src/publish_release_notes.ts
index 1a0ec59e5..13cf0d85d 100644
--- a/packages/monorepo-scripts/src/publish_release_notes.ts
+++ b/packages/monorepo-scripts/src/publish_release_notes.ts
@@ -11,11 +11,13 @@ const args = yargs
})
.example('$0 --isDryRun true', 'Full usage example').argv;
-// tslint:disable-next-line:no-floating-promises
(async () => {
const isDryRun = args.isDryRun;
const shouldIncludePrivate = false;
const allUpdatedPackages = await utils.getUpdatedPackagesAsync(shouldIncludePrivate);
await publishReleaseNotesAsync(allUpdatedPackages, isDryRun);
-})();
+})().catch(err => {
+ utils.log(err);
+ process.exit(1);
+});