mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +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" ]];
|
||||
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
|
||||
|
@ -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)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user