CI/CD allow a Travis cron job to create beta and update children proj… (#5033)

* CI/CD allow a Travis cron job to create beta and update children projects

* Update build.sh
This commit is contained in:
Maurizio Vitale
2019-08-29 15:22:12 +01:00
committed by Eugenio Romano
parent 24e1794fb9
commit ac28b959ee
3 changed files with 20 additions and 1 deletions

View File

@@ -14,7 +14,12 @@ then
if [[ $TRAVIS_BRANCH == "development" ]];
then
./scripts/update-version.sh -gnu -nextalpha || exit 1;
NEXT_VERSION=-nextalpha
if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
then
NEXT_VERSION=-nextbeta
fi
./scripts/update-version.sh -gnu $NEXT_VERSION || exit 1;
fi
node ./scripts/pre-publish.js

View File

@@ -0,0 +1,9 @@
#!/bin/bash
VERSION=$(npm view @alfresco/adf-core@beta version)
echo "git tag -a ${VERSION} -m ${VERSION}"
git tag -a ${VERSION} -m "${VERSION} [ci skip] "
git remote rm origin
git remote add origin 'git@github.com:Alfresco/alfresco-ng2-components.git'
git push origin --tags