aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/publish_release_notes.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-23 20:56:40 +0800
committerFabio Berger <me@fabioberger.com>2018-08-23 20:56:40 +0800
commit2b38163274de9621160d54a8d809284c0b353cc4 (patch)
tree947a508ebbb309b90c0fcb67aebf09a411c1b50f /packages/monorepo-scripts/src/publish_release_notes.ts
parent2a635929949c8d8c867b3a2e0297e74e0bd151a3 (diff)
downloaddexon-0x-contracts-2b38163274de9621160d54a8d809284c0b353cc4.tar
dexon-0x-contracts-2b38163274de9621160d54a8d809284c0b353cc4.tar.gz
dexon-0x-contracts-2b38163274de9621160d54a8d809284c0b353cc4.tar.bz2
dexon-0x-contracts-2b38163274de9621160d54a8d809284c0b353cc4.tar.lz
dexon-0x-contracts-2b38163274de9621160d54a8d809284c0b353cc4.tar.xz
dexon-0x-contracts-2b38163274de9621160d54a8d809284c0b353cc4.tar.zst
dexon-0x-contracts-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.ts13
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);
})();