mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-07 18:25:09 +00:00
Move the tag on the release sh
This commit is contained in:
parent
dcd86ff3b3
commit
9cea94a853
@ -11,15 +11,12 @@ 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
|
||||||
|
@ -4,4 +4,19 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||||||
|
|
||||||
cd $DIR/../../../
|
cd $DIR/../../../
|
||||||
|
|
||||||
|
if [[ $TRAVIS_PULL_REQUEST == "false" ]];
|
||||||
|
then
|
||||||
|
TAG_NPM=latest
|
||||||
|
if [[ $TRAVIS_BRANCH == "development" ]];
|
||||||
|
then
|
||||||
|
TAG_NPM=alpha
|
||||||
|
if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
|
||||||
|
then
|
||||||
|
TAG_NPM=beta
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi;
|
||||||
|
|
||||||
|
echo "Publishing on npm with tag $TAG_NPM"
|
||||||
|
|
||||||
./node_modules/@alfresco/adf-cli/bin/adf-cli npm-publish --npmRegistry $NPM_REGISTRY_ADDRESS --tokenRegistry $NPM_REGISTRY_TOKEN --tag $TAG_NPM --pathProject "$(pwd)"
|
./node_modules/@alfresco/adf-cli/bin/adf-cli npm-publish --npmRegistry $NPM_REGISTRY_ADDRESS --tokenRegistry $NPM_REGISTRY_TOKEN --tag $TAG_NPM --pathProject "$(pwd)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user