fix: pin conventionalcommits preset to avoid writer version mismatch - #267
Open
joris974 wants to merge 1 commit into
Open
fix: pin conventionalcommits preset to avoid writer version mismatch#267joris974 wants to merge 1 commit into
joris974 wants to merge 1 commit into
Conversation
conventional-changelog-conventionalcommits@10.4.0 added a hard failure when rendered by conventional-changelog-writer < 9. The action we use (cycjimmy/semantic-release-action@v6.0.0) bundles semantic-release@25, whose @semantic-release/release-notes-generator@14.1.0 depends on conventional-changelog-writer@^8.0.0, so installing the preset unpinned via extra_plugins pulled in an incompatible major and every release run failed with: Missing helper: "conventional-changelog-conventionalcommits requires conventional-changelog-writer@9 or newer..." Pin to the 9.x line, the last major compatible with writer@8.
joris974
requested review from
cdmren,
dverdaguer and
jleichty-ren
and removed request for
a team and
dverdaguer
August 21, 2026 16:49
joris974
enabled auto-merge
August 21, 2026 16:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Release runs on
mainstarted failing after #212 with:Root cause:
.releaserc.yamlusespreset: 'conventionalcommits', andrelease.ymlinstalls the preset package unpinned viaextra_plugins, so it resolves to whatever is latest (conventional-changelog-conventionalcommits@10.4.0as of this writing). That version added a hard runtime failure when its templates are rendered byconventional-changelog-writer < 9.cycjimmy/semantic-release-action@v6.0.0bundlessemantic-release@25.0.2, whose@semantic-release/release-notes-generator@14.1.0depends onconventional-changelog-writer@^8.0.0— one major behind what the unpinned preset now requires. Hence the mismatch.Fix
Pin the
extra_pluginsentry toconventional-changelog-conventionalcommits@^9, the last major line still compatible withconventional-changelog-writer@8.Verification
Reproduced and fixed locally by installing the action's exact bundled versions and calling
@semantic-release/release-notes-generator'sgenerateNotesdirectly:semantic-release@25.0.2+ unpinnedconventional-changelog-conventionalcommits→ resolves10.4.0,conventional-changelog-writerstays at8.4.0(deduped fromrelease-notes-generator) → reproduces the exact reported error.conventional-changelog-conventionalcommits@^9→ resolves9.3.1against the sameconventional-changelog-writer@8.4.0→generateNotessucceeds and produces correct release notes.Test plan
mainsucceeds