mirror of
https://github.com/xtr-dev/payload-mailing.git
synced 2025-12-10 08:13:23 +00:00
🛡️ **Critical Security & Reliability Fixes:** ### 🚫 Fixed Force Push Safety Risk - Added remote HEAD comparison before force pushing - Aborts workflow if remote main updated by another process - Prevents concurrent workflow conflicts and data loss - Enhanced error messages for push failures ### 🤖 Enhanced Claude CLI Reliability - Removed fallback changelog generation (fails fast instead) - Added 60s timeout for Claude CLI calls - Validates Claude CLI availability before proceeding - Clear error messages when changelog generation fails - Required dependency: changelog generation must succeed ### 📦 Fixed Version Management Issues - Replaced npm version with custom Node.js script - Eliminates package manager inconsistencies - Proper pnpm lockfile synchronization after version changes - No more package-lock.json conflicts in pnpm projects ### ⚛️ Atomic Commit Creation - Single atomic commit instead of multiple amend operations - Eliminates race conditions from multiple git operations - All changes (code + version + lockfile) in one commit - Safer git reset strategy with proper base commit detection ### 🔍 Enhanced Error Handling & Debugging - Comprehensive error checking at each step - Debug output for troubleshooting failures - Graceful cleanup of temporary files - Clear error messages for common failure scenarios **Result:** Production-ready workflow that safely handles concurrent operations and fails fast on errors! 🎯