diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-10-18 22:16:27 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-10-18 22:16:27 +0800 |
commit | a7336d3c6594cdb2c19540d526b62ee05eda6cf5 (patch) | |
tree | 9f1ac970153eba00210a105023e286a1c01edba6 | |
parent | 8b62b350b1fed6a0d8827ca9ed5fcec3e78ae82f (diff) | |
download | dexon-0x-contracts-a7336d3c6594cdb2c19540d526b62ee05eda6cf5.tar dexon-0x-contracts-a7336d3c6594cdb2c19540d526b62ee05eda6cf5.tar.gz dexon-0x-contracts-a7336d3c6594cdb2c19540d526b62ee05eda6cf5.tar.bz2 dexon-0x-contracts-a7336d3c6594cdb2c19540d526b62ee05eda6cf5.tar.lz dexon-0x-contracts-a7336d3c6594cdb2c19540d526b62ee05eda6cf5.tar.xz dexon-0x-contracts-a7336d3c6594cdb2c19540d526b62ee05eda6cf5.tar.zst dexon-0x-contracts-a7336d3c6594cdb2c19540d526b62ee05eda6cf5.zip |
Don't attempt publishing if no packages need it
-rw-r--r-- | packages/monorepo-scripts/src/publish.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts index c1a6b9d7f..b7131e69e 100644 --- a/packages/monorepo-scripts/src/publish.ts +++ b/packages/monorepo-scripts/src/publish.ts @@ -35,6 +35,10 @@ async function confirmAsync(message: string): Promise<void> { // Fetch public, updated Lerna packages const shouldIncludePrivate = true; const allUpdatedPackages = await utils.getUpdatedPackagesAsync(shouldIncludePrivate); + if (_.isEmpty(allUpdatedPackages)) { + utils.log('No packages need publishing'); + process.exit(0); + } const packagesWithDocs = getPackagesWithDocs(allUpdatedPackages); if (!configs.IS_LOCAL_PUBLISH) { |