Skip to content

Commit

Permalink
#171 fixed increasing of patch version
Browse files Browse the repository at this point in the history
  • Loading branch information
bugy committed Feb 26, 2019
1 parent 4f78737 commit 162c9cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/add_git_tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ elif [ "$TRAVIS_BRANCH" == "stable" ]; then
npm_tag=`grep -Po '"version": "\d+.\d+.\d+"' web-src/package.json | grep -Po '\d+.\d+.\d+'`
minor_npm_version=${npm_tag%.*}
if [ ${last_tag%.*} == "$minor_npm_version" ]; then
patch_npm_version=${npm_tag##*.}
next_patch_version=$((patch_npm_version + 1))
last_patch_version=${last_tag##*.}
next_patch_version=$((last_patch_version + 1))
export NEW_GIT_TAG="$minor_npm_version.$next_patch_version"
else
export NEW_GIT_TAG="$npm_tag"
Expand Down

0 comments on commit 162c9cc

Please sign in to comment.