build: do not use the `--all` option with `lerna changed` in the stable release script

This commit is contained in:
Michael Bradley, Jr 2020-02-03 14:21:40 -06:00 committed by Michael Bradley
parent 110957f273
commit 58608db3d6
1 changed files with 8 additions and 2 deletions

View File

@ -211,13 +211,19 @@ const runCommand = (cmd, inherit = true, display) => {
} }
} }
// The `--all` option is not supplied below because `lerna changed` is being
// used to calculate which packages should be tagged via:
// `npm dist-tag add [pkg]@[newStableVersion] nightly`
// Private packages are never tagged because dist-tags only pertain to
// packages published to the NPM registry. By tagging every newly released
// stable version of public packages as `nightly` (in addition to tagging as
// `latest`) we avoid version drift in nightly releases
const lernaChanged = [ const lernaChanged = [
`lerna`, `lerna`,
`changed`, `changed`,
(!forcePublish && `--conventional-graduate`) || ``, (!forcePublish && `--conventional-graduate`) || ``,
(forcePublish && `--force-publish`) || ``, (forcePublish && `--force-publish`) || ``,
`--json`, `--json`
`--all`
].filter(str => !!str).join(` `); ].filter(str => !!str).join(` `);
let pkgsToTag; let pkgsToTag;