Files
payload-mailing/.github/workflows/version-and-publish.yml
Bas van den Aakster b760841e58 Fix workflow to run as required status check before merge
### 🚀 Features
- Added `validate` job that runs on version branch PRs as required status check
- Added pre-merge validation with tests, build, and branch type detection

### 🐛 Bug Fixes
- Fixed workflow timing: now blocks PR merge until validation passes
- Changed trigger from `types: [closed]` to `types: [opened, synchronize, reopened]`
- Separated validation (PR) from publishing (post-merge) workflows

### 🔧 Improvements
- Version publishing only runs after successful merge to main
- Clear messaging about release type during PR validation
- Prevents immediate PR closure before workflow completion

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-13 13:49:23 +02:00

14 KiB