mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
automatically publish libraries on release (#1439)
This commit is contained in:
32
scripts/travis/release/release-npm.sh
Executable file
32
scripts/travis/release/release-npm.sh
Executable 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)"
|
Reference in New Issue
Block a user