From 27c36ad4a2763919bfdbb423bdc0aa07044c2cd0 Mon Sep 17 00:00:00 2001 From: maurizio vitale Date: Mon, 2 Sep 2019 12:41:15 +0100 Subject: [PATCH] Create TAG_NPM based on the branch --- scripts/travis/build/build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/travis/build/build.sh b/scripts/travis/build/build.sh index 56e7a340a3..cd894f1082 100755 --- a/scripts/travis/build/build.sh +++ b/scripts/travis/build/build.sh @@ -11,13 +11,15 @@ npm install @alfresco/adf-cli@alpha if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then - + TAG_NPM=latest if [[ $TRAVIS_BRANCH == "development" ]]; then NEXT_VERSION=-nextalpha + TAG_NPM=alpha if [[ $TRAVIS_EVENT_TYPE == "cron" ]]; then NEXT_VERSION=-nextbeta + TAG_NPM=beta fi ./scripts/update-version.sh -gnu $NEXT_VERSION || exit 1; fi @@ -31,7 +33,7 @@ else ./node_modules/@alfresco/adf-cli/bin/adf-cli update-version --alpha --pathPackage "$(pwd)" npm install; - + ./scripts/smart-build.sh -b $TRAVIS_BRANCH -gnu || exit 1; fi;