Skip to content

Commit

Permalink
Merge pull request #7856 from blink1073/fix-bumpversion-test
Browse files Browse the repository at this point in the history
Fix bumpversion script to properly switch to alpha for a minor release
  • Loading branch information
Steven Silvester committed Feb 6, 2020
2 parents 8289dd8 + 6be921e commit f17361c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion buildutils/src/bumpversion.ts
Expand Up @@ -73,11 +73,14 @@ commander
} else if (spec === 'release' && prev.indexOf('rc') !== -1) {
lernaVersion = 'patch';
}
if (lernaVersion === 'preminor') {
lernaVersion += ' --preid=a';
}

let cmd = `lerna version -m \"New version\" --force-publish=* --no-push ${lernaVersion}`;
if (opts.force) {
cmd += ' --yes';
}

let oldVersion = utils.run(
'git rev-parse HEAD',
{
Expand Down

0 comments on commit f17361c

Please sign in to comment.