Skip to content
Snippets Groups Projects
Commit fdc510a0 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Fixed bug in npm_generate_version using oldest git-tag instead of newest one

parent 20a94545
No related branches found
No related tags found
1 merge request!53Fixed npm_generate_version
Pipeline #96010 passed
......@@ -28,7 +28,7 @@ else
fi
GIT_COMMIT_TIME=$(TZ=UTC0 git show --quiet --date='format-local:%Y%m%d%H%M%S' --format="%cd")
TAG_TIME=${GIT_COMMIT_TIME:2}
TAG=$(git tag --sort=-taggerdate | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+(-.+)?' | tail -1)
TAG=$(git tag --sort=-taggerdate | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+(-.+)?' | head -1)
echo "Preparing npm packge for ${CURRENT_BRANCH}@${TAG} (#${SHORT_HASH})"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment