Create TAG_NPM based on the branch

This commit is contained in:
maurizio vitale
2019-09-02 12:41:15 +01:00
parent 8766dc18a6
commit 27c36ad4a2

View File

@@ -11,13 +11,15 @@ npm install @alfresco/adf-cli@alpha
if [[ $TRAVIS_PULL_REQUEST == "false" ]]; if [[ $TRAVIS_PULL_REQUEST == "false" ]];
then then
TAG_NPM=latest
if [[ $TRAVIS_BRANCH == "development" ]]; if [[ $TRAVIS_BRANCH == "development" ]];
then then
NEXT_VERSION=-nextalpha NEXT_VERSION=-nextalpha
TAG_NPM=alpha
if [[ $TRAVIS_EVENT_TYPE == "cron" ]]; if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
then then
NEXT_VERSION=-nextbeta NEXT_VERSION=-nextbeta
TAG_NPM=beta
fi fi
./scripts/update-version.sh -gnu $NEXT_VERSION || exit 1; ./scripts/update-version.sh -gnu $NEXT_VERSION || exit 1;
fi fi