automatically publish libraries on release (#1439)

This commit is contained in:
Denys Vuika
2020-05-01 17:21:31 +01:00
committed by GitHub
parent c0b81d21a2
commit ab137d3145
3 changed files with 49 additions and 5 deletions

View File

@@ -0,0 +1,32 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT=${DIR}/../../..
DIST=${ROOT}/dist/@alfresco
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;
cd $DIST/aca-shared
npx @alfresco/adf-cli npm-publish && \
--npmRegistry $NPM_REGISTRY_ADDRESS && \
--tokenRegistry $NPM_REGISTRY_TOKEN && \
--tag $TAG_NPM && \
--pathProject "$(pwd)"
cd $DIST/adf-office-services-ext
npx @alfresco/adf-cli npm-publish && \
--npmRegistry $NPM_REGISTRY_ADDRESS && \
--tokenRegistry $NPM_REGISTRY_TOKEN && \
--tag $TAG_NPM && \
--pathProject "$(pwd)"