diff options
author | Fabio Berger <me@fabioberger.com> | 2018-08-23 21:53:16 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-08-23 21:53:16 +0800 |
commit | ae937cfcce0e751bc931a8f05df0b67b62962023 (patch) | |
tree | e1cc960cae96475349064b3dc967353ba689e230 | |
parent | 6c7dca7d07d7076371e48935c79a05c0fd40ce96 (diff) | |
download | dexon-sol-tools-ae937cfcce0e751bc931a8f05df0b67b62962023.tar.gz dexon-sol-tools-ae937cfcce0e751bc931a8f05df0b67b62962023.tar.zst dexon-sol-tools-ae937cfcce0e751bc931a8f05df0b67b62962023.zip |
Add catch and exit with non-zero
-rw-r--r-- | packages/monorepo-scripts/src/publish_release_notes.ts | 6 |
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); +}); |