My goal is configure semantic-release
to create tag from the protected branches like this:
npx semantic-release --plugins @semantic-release/commit-analyzer --branches {'name': 'release/super-feature', 'prerelease': true}
I'm expecting that tag 1.0.0-super-feature
will be created. However, i'm getting an exception:
[semantic-release] › ✖ EINVALIDBRANCH A branch is invalid in the `branches` configuration.
Each branch in the branches configuration (https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#branches) must be either a string, a regexp or an object with a name property.
Your configuration for the problematic branch is ``.
[10:03:55 AM] [semantic-release] › ✖ EINVALIDBRANCH A branch is invalid in the `branches` configuration.
Each branch in the branches configuration (https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#branches) must be either a string, a regexp or an object with a name property.
Your configuration for the problematic branch is ``.
AggregateError:
SemanticReleaseError: A branch is invalid in the `branches` configuration.
at module.exports (/usr/local/lib/node_modules/semantic-release/lib/get-error.js:6:10)
at /usr/local/lib/node_modules/semantic-release/lib/verify.js:36:19
at Array.forEach (<anonymous>)
at module.exports (/usr/local/lib/node_modules/semantic-release/lib/verify.js:32:12)
at async run (/usr/local/lib/node_modules/semantic-release/index.js:54:3)
at async module.exports (/usr/local/lib/node_modules/semantic-release/index.js:260:22)
at async module.exports (/usr/local/lib/node_modules/semantic-release/cli.js:55:5)
SemanticReleaseError: A branch is invalid in the `branches` configuration.
at module.exports (/usr/local/lib/node_modules/semantic-release/lib/get-error.js:6:10)
at /usr/local/lib/node_modules/semantic-release/lib/verify.js:36:19
at Array.forEach (<anonymous>)
at module.exports (/usr/local/lib/node_modules/semantic-release/lib/verify.js:32:12)
at async run (/usr/local/lib/node_modules/semantic-release/index.js:54:3)
at async module.exports (/usr/local/lib/node_modules/semantic-release/index.js:260:22)
at async module.exports (/usr/local/lib/node_modules/semantic-release/cli.js:55:5)
at module.exports (/usr/local/lib/node_modules/semantic-release/lib/verify.js:41:11)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async run (/usr/local/lib/node_modules/semantic-release/index.js:54:3)
at async module.exports (/usr/local/lib/node_modules/semantic-release/index.js:260:22)
at async module.exports (/usr/local/lib/node_modules/semantic-release/cli.js:55:5) {
name: 'AggregateError'
}
Could you please help me to understand what is wrong - CLI parameters or my expectations?