Skip to content

Commit a0ae9ba

Browse files
committed
Log what the script is doing
1 parent b27a8ef commit a0ae9ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/check-node-modules.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ set -e
44

55
# Check if running in GitHub Actions
66
if [ "$GITHUB_ACTIONS" = "true" ]; then
7+
echo "Running in a GitHub Actions workflow; not running 'npm install'"
78
exit 0
89
fi
910

1011
# Check if npm install is likely needed before proceeding
1112
if [ ! -d node_modules ] || [ package-lock.json -nt node_modules/.package-lock.json ]; then
13+
echo "Running 'npm install' because 'node_modules/.package-lock.json' appears to be outdated..."
1214
npm install
15+
else
16+
echo "Skipping 'npm install' because 'node_modules/.package-lock.json' appears to be up-to-date."
1317
fi

0 commit comments

Comments
 (0)