mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
unify rancher update strategy (#5367)
* unify rancher update strategy * fix script * fix script
This commit is contained in:
21
scripts/travis/release/release-npm.sh
Executable file
21
scripts/travis/release/release-npm.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
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)"
|
Reference in New Issue
Block a user