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" ]];
|
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
|
||||||
@@ -31,7 +33,7 @@ else
|
|||||||
./node_modules/@alfresco/adf-cli/bin/adf-cli update-version --alpha --pathPackage "$(pwd)"
|
./node_modules/@alfresco/adf-cli/bin/adf-cli update-version --alpha --pathPackage "$(pwd)"
|
||||||
|
|
||||||
npm install;
|
npm install;
|
||||||
|
|
||||||
./scripts/smart-build.sh -b $TRAVIS_BRANCH -gnu || exit 1;
|
./scripts/smart-build.sh -b $TRAVIS_BRANCH -gnu || exit 1;
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user