Files
payload-mailing/.github
Bas van den Aakster 740a031858 fix: resolve Node.js version mismatch and hardcoded dependencies
🔧 **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
2025-09-13 13:22:50 +02:00
..