aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/publish.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-27 20:09:11 +0800
committerGitHub <noreply@github.com>2018-08-27 20:09:11 +0800
commit368dbda8f0e85105f5fabba166962ee3f9616f5c (patch)
treed10e54538f509c9ba7b9cc27cf01780cf3bce99b /packages/monorepo-scripts/src/publish.ts
parent77290c1efaa8a9e3ded93a4aea4849c16138e457 (diff)
parentbc4149683e2dda2b36c29cc81fadf1ae4de7d8b1 (diff)
downloaddexon-sol-tools-368dbda8f0e85105f5fabba166962ee3f9616f5c.tar
dexon-sol-tools-368dbda8f0e85105f5fabba166962ee3f9616f5c.tar.gz
dexon-sol-tools-368dbda8f0e85105f5fabba166962ee3f9616f5c.tar.bz2
dexon-sol-tools-368dbda8f0e85105f5fabba166962ee3f9616f5c.tar.lz
dexon-sol-tools-368dbda8f0e85105f5fabba166962ee3f9616f5c.tar.xz
dexon-sol-tools-368dbda8f0e85105f5fabba166962ee3f9616f5c.tar.zst
dexon-sol-tools-368dbda8f0e85105f5fabba166962ee3f9616f5c.zip
Merge pull request #1028 from 0xProject/fix-ci
Fix `test_publish` CI Test
Diffstat (limited to 'packages/monorepo-scripts/src/publish.ts')
-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 => {