mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* Decoupling the build from release * test if we are still able to release on npm and docker * Split docker tag from deploy * Fix storybook * Decouple build lib/apps from releasing * Remove useless or
19 lines
457 B
Bash
Executable File
19 lines
457 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
cd $DIR/../../../
|
|
|
|
if [[ $TRAVIS_BRANCH =~ ^master(-patch.*)?$ ]]
|
|
then
|
|
TAG_NPM=latest
|
|
fi
|
|
|
|
if [[ $TRAVIS_BRANCH =~ ^develop(-patch.*)?$ ]]
|
|
then
|
|
TAG_NPM=alpha
|
|
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)"
|