-
Notifications
You must be signed in to change notification settings - Fork 11
Fix release job: install devDependencies for semantic-release plugins #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…endencies Co-authored-by: lirantal <316371+lirantal@users.noreply.github.com>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
|
🎉 This PR is included in version 2.9.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
User description
The
releasejob fails with "Cannot find module '@semantic-release/changelog'" becausenpm ci --only=productionskips devDependencies where all semantic-release plugins are installed.Changes
--only=productionflag from npm install in.github/workflows/main.ymlline 57This ensures semantic-release plugins (
@semantic-release/changelog,@semantic-release/git,@semantic-release/npm, etc.) are available whennpx semantic-releaseruns.Original prompt
This pull request was created from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
PR Type
Bug fix
Description
Remove
--only=productionflag from npm ci commandEnsures semantic-release devDependencies are installed
Fixes release job module not found errors
Diagram Walkthrough
File Walkthrough
main.yml
Remove production-only flag from npm install.github/workflows/main.yml
--only=productionflag from npm ci command in release jobnpm ci --ignore-engines --only=production --audit falseto
npm ci --ignore-engines --audit falseinstalled