You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get this plugin working, however I'm always running into the error
What I tried so far was the .releaserc.json and package.json config types with both having the same results:
[10:30:43 AM] [semantic-release] › ✖ EPLUGINCONF The `analyzeCommits` plugin configuration is invalid.
The analyzeCommits plugin configuration (https://github.com/semantic-release/semantic-release/blob/master/docs/usage/plugins.md#analyzecommits-plugin) is required and must be a single or an array of plugins definition. A plugin definition is an npm module name, optionally wrapped in an array with an object.
Your configuration for the analyzeCommits plugin is ``.
AggregateError:
SemanticReleaseError: The `analyzeCommits` plugin configuration is invalid.
at module.exports (/home/user/workspace/my-app/node_modules/semantic-release/lib/get-error.js:6:10)
at /home/user/workspace/my-app/node_modules/semantic-release/lib/plugins/index.js:62:23
at Array.reduce (<anonymous>)
at module.exports (/home/user/workspace/my-app/node_modules/semantic-release/lib/plugins/index.js:47:59)
at module.exports (/home/user/workspace/my-app/node_modules/semantic-release/lib/get-config.js:84:35)
at async module.exports (/home/user/workspace/my-app/node_modules/semantic-release/index.js:265:32)
at async module.exports (/home/user/workspace/my-app/node_modules/semantic-release/cli.js:55:5)
at module.exports (/home/user/workspace/my-app/node_modules/semantic-release/lib/plugins/index.js:89:11)
at module.exports (/home/user/workspace/my-app/node_modules/semantic-release/lib/get-config.js:84:35)
at async module.exports (/home/user/workspace/my-app/node_modules/semantic-release/index.js:265:32)
I had the same issue. I was testing the setup, and the usage seemed to suggest that various stages/plugins could be executed, so I tried:
semantic-release --analyze-commits
And it failed with the same error as you mentioned. I had to debug to discover that there's supposed to be a second argument, which is a string. I found I had to use the analyzer plugin to make it work:
I guess that these override the .releaserc.json configuration options. I was trying to do a dry-run of the local commits to see if it would bump as expected (I still haven't figured that out). Maybe that'll help you find the issue.
Hello,
I'm trying to get this plugin working, however I'm always running into the error
What I tried so far was the .releaserc.json and package.json config types with both having the same results:
This is my configuration
What am I missing?
The text was updated successfully, but these errors were encountered: