Skip to content

Commit 1a4de1d

Browse files
committed
Log what the script is doing
1 parent 2886019 commit 1a4de1d

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
@@ -2,12 +2,16 @@
22

33
# Check if running in GitHub Actions
44
if [ "$GITHUB_ACTIONS" = "true" ]; then
5+
echo "Running in a GitHub Actions workflow; not running 'npm install'"
56
exit 0
67
fi
78

89
set -e
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)