build: fix nightly version bumping (#21079)

* build: fix nightly version bumping

* spec: add a test for bumping nightlies beyond the 8-x-y branch switch

* Update version-bump-spec.ts
This commit is contained in:
Samuel Attard 2019-11-12 08:36:03 -08:00 committed by GitHub
parent d9d89eeabc
commit c0657a4ca7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -68,6 +68,13 @@ describe('version-bumper', () => {
expect(matches).to.have.lengthOf(1)
})
it('bumps to a nightly version above our switch from N-0-x to N-x-y branch names', async () => {
const version = 'v2.0.0-nightly.19950901'
const next = await nextVersion('nightly', version)
// If it starts with v8 then we didn't bump above the 8-x-y branch
expect(next.startsWith('v8')).to.equal(false)
})
it('throws error when bumping to beta from stable', () => {
const version = 'v2.0.0'
return expect(