Skip to content

Commit

Permalink
fixed an error on resolving version, when latest tag is dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bugy committed Feb 1, 2020
1 parent b2c7a78 commit d2602cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def create_version_file():

npm_version = get_npm_version()
if current_branch == 'stable':
last_tag = process_utils.invoke('git describe --abbrev=0 --tags').strip()
last_tag = process_utils.invoke('git describe --exclude dev --abbrev=0 --tags').strip()
last_tag_version = parse_semver_str(last_tag)
if (last_tag_version[0] == npm_version[0]) and (last_tag_version[1] == npm_version[1]):
new_version = [last_tag_version[0], last_tag_version[1], last_tag_version[2] + 1]
Expand Down

0 comments on commit d2602cf

Please sign in to comment.