Tools: Prevent CI from creating a release if "yarn install" failed

pull/6765/head
Laurent Cozic 2022-08-18 16:28:10 +01:00
parent 78f72f33e6
commit 4b8745c875
1 changed files with 5 additions and 0 deletions

View File

@ -57,6 +57,11 @@ echo "Yarn $( yarn -v )"
cd "$ROOT_DIR"
yarn install
testResult=$?
if [ $testResult -ne 0 ]; then
echo "Yarn installation failed. Search for 'exit code 1' in the log for more information."
exit $testResult
fi
# =============================================================================
# Run test units. Only do it for pull requests and dev branch because we don't