mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-26 17:24:45 +00:00
33 lines
752 B
Bash
Executable File
33 lines
752 B
Bash
Executable File
#!/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)"
|