Skip to content

Commit aef3379

Browse files
committed
[fixed] do not publish documents with '--preid' option
1 parent 3123038 commit aef3379

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ In this case the `package.json` version will be bumped with `--preid docs` as `0
9696

9797
If `npm run docs-build` script is present, then it will be used instead of `npm run build` script.
9898

99+
*Note: Documents are not published with pre-release version,
100+
(i.e. when you run it with `--preid` option).*
101+
99102
#### Pre-release versions publishing
100103

101104
Say you need to publish pre-release `v0.25.100-pre.0` version

src/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ function release({ type, preid, npmTagName }) {
395395
}
396396

397397
// documents site
398-
if (!isPrivate && docsRepo) {
398+
if (!isPrivate && !preid && docsRepo) {
399399
console.log('Releasing: '.cyan + 'documents site'.green);
400400
releaseAdRepo(docsRepo, docsRoot, tmpDocsRepo, vVersion);
401401
console.log('Documents site has been released'.green);

0 commit comments

Comments
 (0)