Skip to content

Commit b27a8ef

Browse files
committed
Exit if running in an Actions workflow
1 parent 6592567 commit b27a8ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/check-node-modules.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/bin/bash
2+
23
set -e
34

5+
# Check if running in GitHub Actions
6+
if [ "$GITHUB_ACTIONS" = "true" ]; then
7+
exit 0
8+
fi
9+
410
# Check if npm install is likely needed before proceeding
511
if [ ! -d node_modules ] || [ package-lock.json -nt node_modules/.package-lock.json ]; then
612
npm install

0 commit comments

Comments
 (0)