diff --git a/scripts/check-node-modules.sh b/scripts/check-node-modules.sh index a777406d3..28ffc38de 100755 --- a/scripts/check-node-modules.sh +++ b/scripts/check-node-modules.sh @@ -1,6 +1,12 @@ #!/bin/bash + set -e +# Check if running in GitHub Actions +if [ "$GITHUB_ACTIONS" = "true" ]; then + exit 0 +fi + # Check if npm install is likely needed before proceeding if [ ! -d node_modules ] || [ package-lock.json -nt node_modules/.package-lock.json ]; then npm install