Files
bef9bfec71 Fix Node.js 24 CI error (#17294)
* chore: test ESM version against Node.js 24

* update Node.js 24 runtime integration test snapshot

* fix node 12 LTS snapshots

* Update node.cjs

Co-authored-by: Nicolò Ribaudo <[email protected]>

* bump verdaccio to 6.1.2

* pin node to 22

* Revert "pin node to 22"

This reverts commit 7f203513fd56dc941e9f6e2d296a5e21b06d8ba2.

* remove unused openssl workaround

* print npm logs on error

* pin create-react-app node to 22

---------

Co-authored-by: Nicolò Ribaudo <[email protected]>
2025-05-07 10:55:03 -04:00

32 lines
704 B
Bash
Executable File

#!/usr/bin/env bash
function cleanup {
echo "Cleaning up."
stopLocalRegistry
if [ -n "$GIT_E2E_SETUP" ]; then
cleanupE2Egit
fi
}
# Error messages are redirected to stderr
function handle_error {
echo "$(basename $0): ERROR! An error was encountered executing line $1." 1>&2;
cleanup
echo "Exiting with error." 1>&2;
cat $HOME/.npm/_logs/*.log
exit 1
}
function handle_exit {
cleanup
echo "Exiting without error." 1>&2;
exit
}
# Exit the script with a helpful error message when any error is encountered
trap 'set +x; handle_error $LINENO $BASH_COMMAND' ERR
# Cleanup before exit on any termination signal
trap 'set +x; handle_exit' SIGQUIT SIGTERM SIGINT SIGKILL SIGHUP