chore: make beta bumps work (#14174)

This commit is contained in:
Samuel Attard 2018-08-17 13:00:43 -07:00 committed by GitHub
parent 0c0ca57f4b
commit c2063bc139
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View file

@ -50,3 +50,5 @@ compile_commands.json
# npm package
/npm/dist
/npm/path.txt
.npmrc

View file

@ -342,7 +342,7 @@ def get_next_beta(v):
return make_version(pv[0] , pv[1], pv[2], 'beta.1')
lv = parse_version(tag_list[-1])
return make_version(lv[0] , lv[1], lv[2], str(int(lv[3]) + 1))
return make_version(pv[0] , pv[1], pv[2], 'beta.' + str(int(lv[3]) + 1))
def get_next_stable_from_pre(v):
pv = clean_parse_version(v)