mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Create TAG_NPM based on the branch
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user