Update hooks and ignore markdown files in size check
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 3m16s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 3m16s
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
|
||||
|
||||
if echo "$changed_files" | grep --quiet -E "package.json|package-lock.json"; then
|
||||
echo "📦 Dependencies changed. Syncing..."
|
||||
|
||||
# --no-progress stops the terminal spam
|
||||
# --loglevel error ensures we only see the bad stuff
|
||||
if npm install --no-progress --loglevel error; then
|
||||
echo "✅ Node modules are up to date."
|
||||
else
|
||||
echo "❌ npm install failed! Please check your connection or package.json."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user