fix beta release script

This commit is contained in:
Eugenio Romano
2020-09-30 10:54:33 +01:00
parent be96e55fee
commit 9fd5a32f0b

View File

@@ -4,17 +4,18 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../../../ cd $DIR/../../../
if [[ "${TRAVIS_EVENT_TYPE}" == "push" ]]; if [ $TRAVIS_EVENT_TYPE == "push" ] || [ $TRAVIS_EVENT_TYPE == "cron" ]
then then
TAG_NPM=latest TAG_NPM=latest
if [[ $TRAVIS_BRANCH == "develop" ]]; if [[ $TRAVIS_BRANCH == "develop" ]];
then then
TAG_NPM=alpha TAG_NPM=alpha
fi
if [[ $TRAVIS_EVENT_TYPE == "cron" ]]; if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
then then
TAG_NPM=beta TAG_NPM=beta
fi fi
fi
echo "Publishing on npm with tag $TAG_NPM" echo "Publishing on npm with tag $TAG_NPM"
npx @alfresco/adf-cli@alpha npm-publish --npmRegistry $NPM_REGISTRY_ADDRESS --tokenRegistry $NPM_REGISTRY_TOKEN --tag $TAG_NPM --pathProject "$(pwd)" npx @alfresco/adf-cli@alpha npm-publish --npmRegistry $NPM_REGISTRY_ADDRESS --tokenRegistry $NPM_REGISTRY_TOKEN --tag $TAG_NPM --pathProject "$(pwd)"