improve tag script

This commit is contained in:
Eugenio Romano
2019-11-25 12:05:43 +00:00
parent 46e53105c2
commit 238f6e7ce9
2 changed files with 6 additions and 19 deletions

View File

@@ -1,6 +1,10 @@
#!/bin/bash
VERSION=$(npm view @alfresco/adf-core@beta version)
if [[ $TRAVIS_BRANCH == "master" ]]; then
TAG_VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g')
else
TAG_VERSION=$(npm view @alfresco/adf-core@beta version)
fi;
echo "git tag -a ${VERSION} -m ${VERSION}"
git config --local user.name "alfresco-build"