File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ function retrieveNextVersion() {
215
215
// bumpMinor is our first canary for an upcoming minor
216
216
// else this is a new nightly canary
217
217
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 ' ) ;
219
219
}
220
220
221
221
return v ;
@@ -320,8 +320,11 @@ async function main() {
320
320
}
321
321
let nextVersion = options . currentVersion ;
322
322
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
323
326
nextVersion = retrieveNextVersion ( ) ;
324
- execWithLog ( `lerna version ${ nextVersion } ` , true ) ;
327
+ execWithLog ( `lerna version ${ nextVersion } --exact ` , true ) ;
325
328
console . log ( `✅ ` + chalk . cyan ( `Successfully Versioned ${ nextVersion } ` ) ) ;
326
329
} else {
327
330
console . log ( '⚠️ ' + chalk . grey ( `Skipping Versioning` ) ) ;
You can’t perform that action at this time.
0 commit comments