.releaserc file, written in YAML or JSON, with optional extensions: .yaml/.yml/.json/.jsrelease.config.js file that exports an objectrelease key in the project's package.json filerelease key in the project's package.json file:.releaserc file:package.json, the configuration must be under the release property. However, when using a .releaserc or a release.config.js file, the configuration must be set without a release property.Array, String
CLI arguments: -e, --extendsArray, String, Object
Default: ['+([0-9])?(.{+([0-9]),x}).x', 'master', 'next', 'next-major', {name: 'beta', prerelease: true}, {name: 'alpha', prerelease: true}]
CLI arguments: --branchesmasterN.N.x or N.x.x or N.x with N being a number)next distribution channel from the branch next if it existsnext-major distribution channel from the branch next-major if it existsbeta distribution channel from the branch beta if it existsalpha distribution channel from the branch alpha if it existsERELEASEBRANCHES error message. If you are using the default configuration, you can fix this error by pushing a master branch.String
Default: repository property in package.json or git origin url
CLI arguments: -r, --repository-urlString
Default: v${version}
CLI arguments: -t, --tag-formatversion variable.tagFormat must contain the version variable exactly once and compile to a valid Git reference.Array
Default: ['@semantic-release/commit-analyzer', '@semantic-release/release-notes-generator', '@semantic-release/npm', '@semantic-release/github']
CLI arguments: -p, --pluginsBoolean
Default: false if running in a CI environment, true otherwise
CLI arguments: -d, --dry-runBoolean
Default: true
CLI arguments: --ci / --no-cifalse to skip Continuous Integration environment verifications. This allows for making releases from a local machine.--no-ci is equivalent to --ci false.Boolean
Default: false
CLI argument: --debugDEBUG environment variable to semantic-release:*.debug is used only supported via CLI argument. To enable debug mode from the JS API use require('debug').enable('semantic-release:*').GIT_AUTHOR_NAMEGIT_AUTHOR_EMAILGIT_COMMITTER_NAMEGIT_COMMITTER_EMAILvx.y.z).master, the last release published on your project is 1.1.0 and the last commit included has the sha 1234567, you must make sure this commit is in master history and is tagged with v1.1.0.