diff options
author | Fabio Berger <me@fabioberger.com> | 2018-08-27 19:39:10 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-08-27 19:39:10 +0800 |
commit | bc4149683e2dda2b36c29cc81fadf1ae4de7d8b1 (patch) | |
tree | d10e54538f509c9ba7b9cc27cf01780cf3bce99b /packages | |
parent | 6174d9ebb78b46d98a3e994ae00eea05a92bc84a (diff) | |
download | dexon-0x-contracts-bc4149683e2dda2b36c29cc81fadf1ae4de7d8b1.tar.gz dexon-0x-contracts-bc4149683e2dda2b36c29cc81fadf1ae4de7d8b1.tar.zst dexon-0x-contracts-bc4149683e2dda2b36c29cc81fadf1ae4de7d8b1.zip |
Skip doc generation for local publishes since we test this in a separate CI test
Diffstat (limited to 'packages')
-rw-r--r-- | packages/monorepo-scripts/src/publish.ts | 8 |
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 => { |