From 9fd5a32f0b33e3c725c510feb7184a4700d385b6 Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Wed, 30 Sep 2020 10:54:33 +0100 Subject: [PATCH] fix beta release script --- scripts/travis/release/release-npm.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/travis/release/release-npm.sh b/scripts/travis/release/release-npm.sh index aa1bb32c83..e0f8a12dc2 100755 --- a/scripts/travis/release/release-npm.sh +++ b/scripts/travis/release/release-npm.sh @@ -4,20 +4,21 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $DIR/../../../ -if [[ "${TRAVIS_EVENT_TYPE}" == "push" ]]; +if [ $TRAVIS_EVENT_TYPE == "push" ] || [ $TRAVIS_EVENT_TYPE == "cron" ] then TAG_NPM=latest if [[ $TRAVIS_BRANCH == "develop" ]]; then TAG_NPM=alpha - if [[ $TRAVIS_EVENT_TYPE == "cron" ]]; - then - TAG_NPM=beta - fi + fi + + if [[ $TRAVIS_EVENT_TYPE == "cron" ]]; + then + TAG_NPM=beta fi 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)" else - echo "PR No need to release in NPM" + echo "PR No need to release in NPM" fi;