mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix beta release script
This commit is contained in:
@@ -4,20 +4,21 @@ 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
|
||||||
if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
|
fi
|
||||||
then
|
|
||||||
TAG_NPM=beta
|
if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
|
||||||
fi
|
then
|
||||||
|
TAG_NPM=beta
|
||||||
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)"
|
||||||
else
|
else
|
||||||
echo "PR No need to release in NPM"
|
echo "PR No need to release in NPM"
|
||||||
fi;
|
fi;
|
||||||
|
Reference in New Issue
Block a user