Move the tag on the release sh

This commit is contained in:
maurizio vitale 2019-09-02 14:50:52 +01:00
parent dcd86ff3b3
commit 9cea94a853
2 changed files with 15 additions and 3 deletions

View File

@ -11,15 +11,12 @@ 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

View File

@ -4,4 +4,19 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
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)"