semantic-release-fail-on-major-bump

Semantic release plugin that prevents publishing major version bumps

Usage no npm install needed!

<script type="module">
  import semanticReleaseFailOnMajorBump from 'https://cdn.skypack.dev/semantic-release-fail-on-major-bump';
</script>

README

Icon

Semantic Release Fail on Major Bump

Semantic release plugin that prevents publishing major version bumps

npm version check status license: MIT

Description

If you need your pipelines to fail if a major or breaking change release will be created with semantic-release, drop this plugin into your config.

Installation

npm install --save-dev semantic-release-fail-on-major-bump

Usage

In your semantic-release configuration file, add semantic-release-fail-on-major-bump.

.releaserc

{
  "plugins": [
    [
      "semantic-release-fail-on-major-bump",
      "@semantic-release/commit-analyzer",
      {
        "preset": "angular",
        "releaseRules": [
          {"type": "docs", "scope":"README", "release": "patch"},
          {"type": "refactor", "release": "patch"},
          {"type": "style", "release": "patch"}
        ],
        "parserOpts": {
          "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
        }
      }
    ]
  ]
}

License

Copyright Evelyn Hathaway, MIT License