semantic-release

Fully automated version management and package publishing.

Installation

Recommend installing semantic-release locally.

npm install --save-dev semantic-release @semantic-release/changelog

And running the semantic-release command with npx:

npx semantic-release

Configuration

A .releaserc file, written in YAML or JSON, with optional extensions: .yaml/.yml/.json/.js

{
    "branches": ["master", "next"],
    "plugins": [
        "@semantic-release/commit-analyzer",
        "@semantic-release/release-notes-generator",
        "@semantic-release/changelog",
        "@semantic-release/npm",
        "@semantic-release/git"
    ]
}

Via CLI argument:

npx semantic-release --branches next