Skip to content

fix: install conventionalcommits preset for semantic-release - #56

Merged
dawsontoth merged 1 commit into
mainfrom
claude/release-fix-conventionalcommits-preset
Jul 23, 2026
Merged

fix: install conventionalcommits preset for semantic-release#56
dawsontoth merged 1 commit into
mainfrom
claude/release-fix-conventionalcommits-preset

Conversation

@dawsontoth

Copy link
Copy Markdown
Contributor

The failure

The first Release run after #54 merged failed at the Semantic Release step (Build passed):

[semantic-release] › ✘  An error occurred while running semantic-release:
Error: Cannot find module 'conventional-changelog-conventionalcommits'

Cause

.releaserc.json configures @semantic-release/release-notes-generator with preset: "conventionalcommits". That preset lives in the separate conventional-changelog-conventionalcommits package — release-notes-generator only ships conventional-changelog-angular as a dependency (confirmed: npm view @semantic-release/release-notes-generator@14 dependencies). cycjimmy/semantic-release-action installs only the packages listed in extra_plugins, and that list didn't include the preset, so the module wasn't present at release time.

Fix

Add conventional-changelog-conventionalcommits to extra_plugins. Unpinned, matching the workflow's existing "track latest" posture — the action installs the latest semantic-release, and the latest preset (10.2.1, which only pulls @conventional-changelog/template) is the matching pairing. This got through review originally because it's inherited verbatim from vite's workflow, which has the same latent gap.

Notes

  • This is workflow-only; it re-runs on the next push to main (or via Run workflow). Nothing to build/test locally.
  • Auth/provenance was never reached — the failure was during changelog-preset loading, before publish — so this unblocks the step you set provenance up for.
  • Same fix for vite is in HarperFast/vite (its release.yaml has the identical gap).
  • If you'd prefer reproducible releases over "latest", we could pin conventional-changelog-conventionalcommits (and semantic-release) to explicit versions here and in vite — say the word.

🤖 Generated with Claude Code

The Release workflow failed at the Semantic Release step with
"Cannot find module 'conventional-changelog-conventionalcommits'".
`.releaserc.json` configures @semantic-release/release-notes-generator with
`preset: "conventionalcommits"`, but that preset package is not a dependency of
release-notes-generator (it ships only conventional-changelog-angular), and the
action only installs the plugins listed in `extra_plugins`. Add
conventional-changelog-conventionalcommits so the preset resolves at release time.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@dawsontoth
dawsontoth merged commit 4058ca8 into main Jul 23, 2026
7 checks passed
@dawsontoth
dawsontoth deleted the claude/release-fix-conventionalcommits-preset branch July 23, 2026 18:13
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant