aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-02 04:10:27 +0800
committerFabio Berger <me@fabioberger.com>2018-04-02 04:10:27 +0800
commitd187a31e3833f21c86da070bceb858813e4848e3 (patch)
treeaf05fc5819e734ad1b01e79268254512536e8538
parentc6f85464ced3cecb2a4a5b3b79a19b6fd56c8a58 (diff)
downloaddexon-sol-tools-d187a31e3833f21c86da070bceb858813e4848e3.tar
dexon-sol-tools-d187a31e3833f21c86da070bceb858813e4848e3.tar.gz
dexon-sol-tools-d187a31e3833f21c86da070bceb858813e4848e3.tar.bz2
dexon-sol-tools-d187a31e3833f21c86da070bceb858813e4848e3.tar.lz
dexon-sol-tools-d187a31e3833f21c86da070bceb858813e4848e3.tar.xz
dexon-sol-tools-d187a31e3833f21c86da070bceb858813e4848e3.tar.zst
dexon-sol-tools-d187a31e3833f21c86da070bceb858813e4848e3.zip
Make dry-run configurable from top-level package.json
-rw-r--r--package.json2
-rw-r--r--packages/monorepo-scripts/src/publish.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/package.json b/package.json
index 31b669bc7..2b1f04802 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,7 @@
"lerna:run": "lerna run",
"lerna:rebuild": "lerna run clean; lerna run build;",
"lerna:publish":
- "yarn install; yarn lerna:rebuild; node ./packages/monorepo-scripts/lib/publish.js"
+ "yarn install; yarn lerna:rebuild; IS_DRY_RUN=false node ./packages/monorepo-scripts/lib/publish.js"
},
"config": {
"mnemonic": "concert load couple harbor equip island argue ramp clarify fence smart topic"
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts
index 1821dad28..2f18f2a9c 100644
--- a/packages/monorepo-scripts/src/publish.ts
+++ b/packages/monorepo-scripts/src/publish.ts
@@ -13,7 +13,7 @@ import { constants } from './constants';
import { Changelog, Changes, SemVerIndex, UpdatedPackage } from './types';
import { utils } from './utils';
-const IS_DRY_RUN = false;
+const IS_DRY_RUN = process.env.IS_DRY_RUN === 'false';
const TODAYS_TIMESTAMP = moment().unix();
const LERNA_EXECUTABLE = './node_modules/lerna/bin/lerna.js';
const semverNameToIndex: { [semver: string]: number } = {