Files
codeql-action/scripts/check-node-modules.sh
2025-09-25 20:25:59 +01:00

14 lines
278 B
Bash
Executable File

#!/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
fi