Eugenio Romano 2071596fe6
[ADF-5331] - Alpha ADF/JS-API update has been successfully created. (#6639)
* remove unused script
refactor the alpha build to use the JS-API in the branch all the time

* use alpha build number

* rewire maxretry

* Delete check-js-api-version.js
2021-02-08 16:00:44 +00:00

34 lines
809 B
Bash
Executable File

#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../../../
rm -rf tmp && mkdir tmp;
npx @alfresco/adf-cli@alpha update-commit-sha --pointer "HEAD" --pathPackage "$(pwd)"
if [ $TRAVIS_EVENT_TYPE == "push" ] || [ $TRAVIS_EVENT_TYPE == "cron" ]
then
if [[ $TRAVIS_BRANCH == "develop" ]];
then
NEXT_VERSION=-nextalpha
./scripts/update-version.sh -gnu $NEXT_VERSION || exit 1;
fi
if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
then
NEXT_VERSION=-nextbeta
./scripts/update-version.sh -gnu $NEXT_VERSION || exit 1;
fi
node ./scripts/pre-publish.js
npm install
fi;
./scripts/build/build-all-lib.sh
echo "====== Build Demo shell for production ====="
NODE_OPTIONS=--max_old_space_size=8192 nx build demoshell --prod