aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-27 19:39:10 +0800
committerFabio Berger <me@fabioberger.com>2018-08-27 19:39:10 +0800
commitbc4149683e2dda2b36c29cc81fadf1ae4de7d8b1 (patch)
treed10e54538f509c9ba7b9cc27cf01780cf3bce99b /packages/monorepo-scripts/src
parent6174d9ebb78b46d98a3e994ae00eea05a92bc84a (diff)
downloaddexon-sol-tools-bc4149683e2dda2b36c29cc81fadf1ae4de7d8b1.tar
dexon-sol-tools-bc4149683e2dda2b36c29cc81fadf1ae4de7d8b1.tar.gz
dexon-sol-tools-bc4149683e2dda2b36c29cc81fadf1ae4de7d8b1.tar.bz2
dexon-sol-tools-bc4149683e2dda2b36c29cc81fadf1ae4de7d8b1.tar.lz
dexon-sol-tools-bc4149683e2dda2b36c29cc81fadf1ae4de7d8b1.tar.xz
dexon-sol-tools-bc4149683e2dda2b36c29cc81fadf1ae4de7d8b1.tar.zst
dexon-sol-tools-bc4149683e2dda2b36c29cc81fadf1ae4de7d8b1.zip
Skip doc generation for local publishes since we test this in a separate CI test
Diffstat (limited to 'packages/monorepo-scripts/src')
-rw-r--r--packages/monorepo-scripts/src/publish.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts
index 7e2e64536..646818c58 100644
--- a/packages/monorepo-scripts/src/publish.ts
+++ b/packages/monorepo-scripts/src/publish.ts
@@ -74,9 +74,11 @@ async function confirmAsync(message: string): Promise<void> {
});
utils.log(`Calling 'lerna publish'...`);
await lernaPublishAsync(packageToNextVersion);
- const isStaging = false;
- const shouldUploadDocs = !configs.IS_LOCAL_PUBLISH;
- await generateAndUploadDocJsonsAsync(packagesWithDocs, isStaging, shouldUploadDocs);
+ if (!configs.IS_LOCAL_PUBLISH) {
+ const isStaging = false;
+ const shouldUploadDocs = true;
+ await generateAndUploadDocJsonsAsync(packagesWithDocs, isStaging, shouldUploadDocs);
+ }
const isDryRun = configs.IS_LOCAL_PUBLISH;
await publishReleaseNotesAsync(updatedPublicPackages, isDryRun);
})().catch(err => {