build: add support for automated minor releases (#20620)

* build: add support for automated minor releases

* Add test for minor bump
This commit is contained in:
John Kleinschmidt 2019-10-23 14:07:10 -04:00 committed by Samuel Attard
parent f5e5bcd943
commit 467409458e
3 changed files with 10 additions and 1 deletions

View file

@ -90,6 +90,9 @@ async function nextVersion (bumpType, version) {
break
case 'beta':
throw new Error('Cannot bump to beta from stable.')
case 'minor':
version = semver.inc(version, 'minor')
break
case 'stable':
version = semver.inc(version, 'patch')
break