Skip to content

Commit

Permalink
[BUGFIX] ensure produced artifacts correctly lock with each other (#6309
Browse files Browse the repository at this point in the history
) (#6310)
  • Loading branch information
runspired authored Aug 6, 2019
1 parent f0986f0 commit 598993f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function retrieveNextVersion() {
// bumpMinor is our first canary for an upcoming minor
// else this is a new nightly canary
let bumpType = options.bumpMajor ? 'premajor' : options.bumpMinor ? 'preminor' : 'prerelease';
v = semver.inc(options.currentVersion, bumpType, 'canary');
v = semver.inc(options.currentVersion, bumpType, 'alpha');
}

return v;
Expand Down Expand Up @@ -320,8 +320,11 @@ async function main() {
}
let nextVersion = options.currentVersion;
if (!options.skipVersion) {
// https://github.com/lerna/lerna/tree/master/commands/version#--exact
// We use exact to ensure that our consumers always use the appropriate
// versions published with each other
nextVersion = retrieveNextVersion();
execWithLog(`lerna version ${nextVersion}`, true);
execWithLog(`lerna version ${nextVersion} --exact`, true);
console.log(`✅ ` + chalk.cyan(`Successfully Versioned ${nextVersion}`));
} else {
console.log('⚠️ ' + chalk.grey(`Skipping Versioning`));
Expand Down

0 comments on commit 598993f

Please sign in to comment.