mirror of
https://github.com/xtr-dev/payload-mailing.git
synced 2025-12-10 00:03:23 +00:00
🔧 **Configuration & Validation Fixes:** ### 📦 Node.js Version Alignment - Updated workflow from Node 18 → Node 20 - Matches package.json engines requirement (^18.20.2 || >=20.9.0) - Ensures consistent runtime environment ### 🏷️ Dynamic Package Name Resolution - Removed hardcoded @xtr-dev/payload-mailing references - Reads package name dynamically from package.json - Updates NPM URLs, GitHub releases, and installation commands - Uses ${{ github.repository }} for dynamic repo references ### ✅ Prerequisites Validation - Validates all required version branches exist before processing - Checks Node.js version compatibility with package.json engines - Provides clear error messages for missing branches with fix instructions - Extracts and exposes package metadata for downstream steps **New Validation Steps:** - 🔍 Version branches validation (version/major, version/minor, version/patch) - 📌 Package name and version extraction - ⚡ Node.js version compatibility check - 🛡️ Early failure with actionable error messages **Benefits:** - ✅ Prevents cryptic workflow failures - ✅ Repository-agnostic workflow (works for any fork) - ✅ Consistent Node.js environment - ✅ Self-documenting error messages