aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-23 21:53:16 +0800
committerFabio Berger <me@fabioberger.com>2018-08-23 21:53:16 +0800
commitae937cfcce0e751bc931a8f05df0b67b62962023 (patch)
treee1cc960cae96475349064b3dc967353ba689e230 /packages
parent6c7dca7d07d7076371e48935c79a05c0fd40ce96 (diff)
downloaddexon-sol-tools-ae937cfcce0e751bc931a8f05df0b67b62962023.tar
dexon-sol-tools-ae937cfcce0e751bc931a8f05df0b67b62962023.tar.gz
dexon-sol-tools-ae937cfcce0e751bc931a8f05df0b67b62962023.tar.bz2
dexon-sol-tools-ae937cfcce0e751bc931a8f05df0b67b62962023.tar.lz
dexon-sol-tools-ae937cfcce0e751bc931a8f05df0b67b62962023.tar.xz
dexon-sol-tools-ae937cfcce0e751bc931a8f05df0b67b62962023.tar.zst
dexon-sol-tools-ae937cfcce0e751bc931a8f05df0b67b62962023.zip
Add catch and exit with non-zero
Diffstat (limited to 'packages')
-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);
+});