Squash merges: semantic-release reads the PR title, not your commits
If you write Conventional Commits and let semantic-release cut your versions, the commit subject is the whole contract: feat: bumps the minor version, fix: the patch, and each subject becomes a changelog line. Squash-merge a pull request with two or more commits, and GitHub writes one commit titled after the pull request . That title is all semantic-release reads: the commits listed in its body…
Semantic-release analyzes pull request titles, not individual commits, when creating release notes. Squashing multiple commits into a single GitHub merge commit means semantic-release reads the PR title, ignoring the individual commits within. This can lead to missed releases if the PR title doesn't follow semantic-release's versioning rules.
To ensure proper releases, maintain a consistent commit format in CONTRIBUTING.md, configure semantic-release with the conventionalcommits preset, and use a pinned semantic-release version in the GitHub workflow. After merging, review the release log to verify that all commits have been accounted for in the changelog.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to