NPM PACKAGE

semantic-release-npm-github-publish

One maintained preset for semantic-release that publishes to npm and GitHub, updates your changelog, and commits the release artifacts.

Install

npm install --save-dev \
  semantic-release \
  semantic-release-npm-github-publish \
  @semantic-release/changelog \
  @semantic-release/commit-analyzer \
  @semantic-release/git \
  @semantic-release/github \
  @semantic-release/npm \
  @semantic-release/release-notes-generator

Usage

branches:
  - main
extends: "semantic-release-npm-github-publish"
ci: false
dryRun: false
debug: false

Plugin chain

commit-analyzer → release-notes-generator → changelog → npm → git → github

SemVer mapping

fix = patch, feat = minor, BREAKING CHANGE or ! = major.

Extra patch rules

build, ci, chore, docs, refactor, style, and test release as patch.