🎨 **Cleaner Commit Messages:**
Instead of keeping the merge PR text, the workflow now creates clean, semantic commit messages:
**Before:**
**After:**
**Commit Title Format:**
- 🚀 Major Release (for breaking changes)
- ✨ Minor Release (for new features)
- 🐛 Patch Release (for bug fixes)
This creates a much cleaner git history focused on the actual changes rather than GitHub merge mechanics.
🔧 **Improved Changelog Integration:**
- Changelog is now appended to the PR merge commit message instead of creating a separate commit
- Version bump changes are included in the same amended merge commit
- Uses git commit --amend to modify the merge commit with both changelog and version changes
- Updated force push with --force-with-lease for safer history rewriting
- Cleaner git history with single commit containing all release information
**Benefits:**
- ✅ Single commit per release (cleaner history)
- ✅ Changelog directly visible in merge commit
- ✅ No additional 'chore: bump version' commits
- ✅ All release info consolidated in one place
- ✅ Safer force push with --force-with-lease
🐛 **Fixes Applied:**
### Package Manager Alignment
- Switched from npm to pnpm throughout workflow to match project setup
- Added proper pnpm cache configuration for faster builds
- Used pnpm/action-setup@v4 for pnpm installation
- Kept npm for version bumping only (pnpm lacks version command)
### Deprecated Action Replacement
- Replaced deprecated actions/create-release@v1 with gh CLI
- Updated to use gh release create for better reliability
- Improved release notes formatting with proper escaping
### Missing Output Declaration
- Added proper outputs declaration to version-and-publish job
- Exposed new-version, current-version, and version-type outputs
- Fixed notify-success job to properly reference outputs
- Added conditional check to prevent empty version notifications
### Additional Improvements
- Enhanced lockfile handling for both package-lock.json and pnpm-lock.yaml
- Added --no-git-checks flag to pnpm publish for CI environment
- Improved success notification with version change details
- Created version/major, version/minor, and version/patch branches for semantic versioning
- Added GitHub Actions workflow for automated version bumping and publishing
- Integrated Claude Code CLI for AI-generated changelogs in commit messages and releases
- Added comprehensive documentation for version workflow usage
- Workflow includes testing, building, NPM publishing, and GitHub releases
- Changelog categorizes changes into Features, Bug Fixes, Improvements, Documentation, and Performance