1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

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

This commit is contained in:
Laurent Cozic 2022-08-18 16:28:10 +01:00
parent 78f72f33e6
commit 4b8745c875

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