Maurizio Vitale 1c46bb83a0
[AAE-11259] Pipeline - Decoupling the build from release (#7935)
* Decoupling the build from release

* test if we are still able to release on npm and docker

* Split docker tag from deploy

* Fix storybook

* Decouple build lib/apps from releasing

* Remove useless or
2022-11-02 11:31:54 +00:00

24 lines
723 B
Bash
Executable File

#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../../../
if [[ $TRAVIS_BRANCH =~ ^develop(-patch.*)?$ ]]
then
isSameADFSha=$(node ./scripts/travis/update/adf-same-commit-verify.js --token=$TOKEN --head=$BRANCH_TO_CREATE --repo=$NAME_REPO --commit=$COMMIT )
if [ "$isSameADFSha" = 'true' ]; then
echo 'ADF sha is the same. No need to publish again on NPM'
else
echo "Replace NPM version with new Alpha tag"
NEXT_VERSION=-nextalpha
./scripts/update-version.sh -gnu $NEXT_VERSION || exit 1;
fi
fi
node ./scripts/pre-publish.js
echo "====== Prebuilt Themes ====="
nx affected $NX_CALCULATION_FLAGS --target=pretheme