Skip to content

Commit 162c9cc

Browse files
committed
#171 fixed increasing of patch version
1 parent 4f78737 commit 162c9cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/add_git_tag.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ elif [ "$TRAVIS_BRANCH" == "stable" ]; then
1313
npm_tag=`grep -Po '"version": "\d+.\d+.\d+"' web-src/package.json | grep -Po '\d+.\d+.\d+'`
1414
minor_npm_version=${npm_tag%.*}
1515
if [ ${last_tag%.*} == "$minor_npm_version" ]; then
16-
patch_npm_version=${npm_tag##*.}
17-
next_patch_version=$((patch_npm_version + 1))
16+
last_patch_version=${last_tag##*.}
17+
next_patch_version=$((last_patch_version + 1))
1818
export NEW_GIT_TAG="$minor_npm_version.$next_patch_version"
1919
else
2020
export NEW_GIT_TAG="$npm_tag"

0 commit comments

Comments
 (0)