Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 6be3478

Browse files
committed
Add env var to toggle post-merge hook
1 parent 1e65922 commit 6be3478

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/post-merge

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ SOURCE_DIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
77
# shellcheck source=src/helpers/is-changed.sh
88
source "${SOURCE_DIR}/helpers/is-changed.sh"
99

10+
if [[ ${GIT_GRAPNEL_AUTO_INSTALL:-0} -eq 0 ]]; then exit 0; fi
11+
1012
if [[ -f package-lock.json ]] && is_changed package-lock.json; then
1113
npm clean-install || npm install
1214
fi

0 commit comments

Comments
 (0)