diff options
author | Fabio Berger <me@fabioberger.com> | 2018-08-23 20:56:40 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-08-23 20:56:40 +0800 |
commit | 2b38163274de9621160d54a8d809284c0b353cc4 (patch) | |
tree | 947a508ebbb309b90c0fcb67aebf09a411c1b50f /packages/monorepo-scripts/src/publish_release_notes.ts | |
parent | 2a635929949c8d8c867b3a2e0297e74e0bd151a3 (diff) | |
download | dexon-sol-tools-2b38163274de9621160d54a8d809284c0b353cc4.tar dexon-sol-tools-2b38163274de9621160d54a8d809284c0b353cc4.tar.gz dexon-sol-tools-2b38163274de9621160d54a8d809284c0b353cc4.tar.bz2 dexon-sol-tools-2b38163274de9621160d54a8d809284c0b353cc4.tar.lz dexon-sol-tools-2b38163274de9621160d54a8d809284c0b353cc4.tar.xz dexon-sol-tools-2b38163274de9621160d54a8d809284c0b353cc4.tar.zst dexon-sol-tools-2b38163274de9621160d54a8d809284c0b353cc4.zip |
Enable dry run of release publishing and handle git tags existing
Diffstat (limited to 'packages/monorepo-scripts/src/publish_release_notes.ts')
-rw-r--r-- | packages/monorepo-scripts/src/publish_release_notes.ts | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/packages/monorepo-scripts/src/publish_release_notes.ts b/packages/monorepo-scripts/src/publish_release_notes.ts index 5afcc8775..1a0ec59e5 100644 --- a/packages/monorepo-scripts/src/publish_release_notes.ts +++ b/packages/monorepo-scripts/src/publish_release_notes.ts @@ -1,10 +1,21 @@ +import * as yargs from 'yargs'; + import { publishReleaseNotesAsync } from './utils/github_release_utils'; import { utils } from './utils/utils'; +const args = yargs + .option('isDryRun', { + describe: 'Whether we wish to do a dry run, not committing anything to Github', + type: 'boolean', + demandOption: true, + }) + .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); + await publishReleaseNotesAsync(allUpdatedPackages, isDryRun); })(); |