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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,18 +8,20 @@ rm -rf tmp && mkdir tmp;
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
if [[ $TRAVIS_BRANCH == "develop" ]];
then
NEXT_VERSION=-nextalpha
if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
then
NEXT_VERSION=-nextbeta
fi
./scripts/update-version.sh -gnu $NEXT_VERSION || exit 1;
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
npm install