From a1a9f33daeb486e93ef63a22288df3c10f1681eb Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Mon, 25 Nov 2019 12:24:33 +0000 Subject: [PATCH] improve tag script --- scripts/travis/release/git-tag.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/travis/release/git-tag.sh b/scripts/travis/release/git-tag.sh index 9d4dbfd286..06d0abc60b 100755 --- a/scripts/travis/release/git-tag.sh +++ b/scripts/travis/release/git-tag.sh @@ -1,9 +1,9 @@ #!/bin/bash if [[ $TRAVIS_BRANCH == "master" ]]; then - TAG_VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g') + VERSION=$(npm view @alfresco/adf-core@beta version) else - TAG_VERSION=$(npm view @alfresco/adf-core@beta version) + VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g') fi; echo "git tag -a ${VERSION} -m ${VERSION}" @@ -11,6 +11,6 @@ git config --local user.name "alfresco-build" git config --local user.email "build@alfresco.com" git tag -a ${VERSION} -m "${VERSION} [ci skip] " git remote rm origin -GITHUB_REPO=https://$GITHUB_TOKEN:x-oauth-basic@github.com/Alfresco/alfresco-ng2-components.git +GITHUB_REPO=https://$GITHUB_TOKEN:x-oauth-basic@github.com/Alfresco/alfresco-js-api.git git remote add origin $GITHUB_REPO git push origin --tags