mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:01:09 +02:00
- Add clear error messages when pre-commit checks fail - Add clear error messages when pre-push builds fail - Explicitly warn against using --no-verify flag - Encourage developers to fix issues rather than bypass checks 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
12 lines
413 B
Text
Executable file
12 lines
413 B
Text
Executable file
# Run production build check before push
|
|
# This catches npm package incompatibilities and Docker issues before CI/CD
|
|
./scripts/build-changed-apps.sh || {
|
|
echo ""
|
|
echo "❌ Production build check failed!"
|
|
echo ""
|
|
echo "Please fix the build errors above before pushing."
|
|
echo "These errors will cause CI/CD to fail."
|
|
echo "Do NOT use 'git push --no-verify' to bypass these checks."
|
|
echo ""
|
|
exit 1
|
|
}
|