We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2886019 commit 1a4de1dCopy full SHA for 1a4de1d
scripts/check-node-modules.sh
@@ -2,12 +2,16 @@
2
3
# Check if running in GitHub Actions
4
if [ "$GITHUB_ACTIONS" = "true" ]; then
5
+ echo "Running in a GitHub Actions workflow; not running 'npm install'"
6
exit 0
7
fi
8
9
set -e
10
11
# Check if npm install is likely needed before proceeding
12
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..."
14
npm install
15
+else
16
+ echo "Skipping 'npm install' because 'node_modules/.package-lock.json' appears to be up-to-date."
17
0 commit comments