Skip to content

Commit d745436

Browse files
authored
[BUGFIX BETA] ensure produced artifacts correctly lock with each other (#6309)
1 parent 6335040 commit d745436

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bin/publish.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function retrieveNextVersion() {
215215
// bumpMinor is our first canary for an upcoming minor
216216
// else this is a new nightly canary
217217
let bumpType = options.bumpMajor ? 'premajor' : options.bumpMinor ? 'preminor' : 'prerelease';
218-
v = semver.inc(options.currentVersion, bumpType, 'canary');
218+
v = semver.inc(options.currentVersion, bumpType, 'alpha');
219219
}
220220

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

0 commit comments

Comments
 (0)