.releaserc
file, written in YAML or JSON, with optional extensions: .yaml
/.yml
/.json
/.js
release.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
, --extends
Array
, String
, Object
Default: ['+([0-9])?(.{+([0-9]),x}).x', 'master', 'next', 'next-major', {name: 'beta', prerelease: true}, {name: 'alpha', prerelease: true}]
CLI arguments: --branches
master
N.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-url
String
Default: v${version}
CLI arguments: -t
, --tag-format
version
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
, --plugins
Boolean
Default: false
if running in a CI environment, true
otherwise
CLI arguments: -d
, --dry-run
Boolean
Default: true
CLI arguments: --ci
/ --no-ci
false
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: --debug
DEBUG
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_NAME
GIT_AUTHOR_EMAIL
GIT_COMMITTER_NAME
GIT_COMMITTER_EMAIL
vx.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
.