Exit if running in an Actions workflow

This commit is contained in:
Michael B. Gale
2025-09-25 20:22:47 +01:00
parent 65925679a3
commit b27a8ef21f

View File

@@ -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