Update build.sh

This commit is contained in:
Eugenio Romano
2020-10-02 16:30:11 +01:00
committed by GitHub
parent 7c4c1e0304
commit 6915cc0e16

View File

@@ -8,17 +8,19 @@ rm -rf tmp && mkdir tmp;
npx @alfresco/adf-cli@alpha update-commit-sha --pointer "HEAD" --pathPackage "$(pwd)" npx @alfresco/adf-cli@alpha update-commit-sha --pointer "HEAD" --pathPackage "$(pwd)"
if [[ "${TRAVIS_EVENT_TYPE}" == "push" ]]; if [ $TRAVIS_EVENT_TYPE == "push" ] || [ $TRAVIS_EVENT_TYPE == "cron" ]
then then
if [[ $TRAVIS_BRANCH == "develop" ]]; if [[ $TRAVIS_BRANCH == "develop" ]];
then then
NEXT_VERSION=-nextalpha NEXT_VERSION=-nextalpha
if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
then
NEXT_VERSION=-nextbeta
fi
./scripts/update-version.sh -gnu $NEXT_VERSION || exit 1;
fi fi
if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
then
NEXT_VERSION=-nextbeta
fi
./scripts/update-version.sh -gnu $NEXT_VERSION || exit 1;
node ./scripts/pre-publish.js node ./scripts/pre-publish.js