Browse Source

chore: make beta bumps work (#14174)

Samuel Attard 6 years ago
parent
commit
c2063bc139
2 changed files with 3 additions and 1 deletions
  1. 2 0
      .gitignore
  2. 1 1
      script/lib/util.py

+ 2 - 0
.gitignore

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

+ 1 - 1
script/lib/util.py

@@ -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)