Skip to content

๐Ÿ‘†โ›” A drop-in replacement for @semantic-release/commit-analyzer that fails when no release is made

License

Notifications You must be signed in to change notification settings

evelynhathaway/commit-analyzer-fail-on-no-release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

81 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Icon

Commit Analyzer Fail on No Release

A drop-in replacement for @semantic-release/commit-analyzer that fails when no release is made

npm version check status license: MIT

Description

If you need your pipelines to fail if no release will be created with semantic-release, drop this plugin into your config.

Installation

npm install --save-dev commit-analyzer-fail-on-no-release

Usage

In your semantic-release configuration file, replace the default commit analyzer with commit-analyzer-fail-on-no-release. All configuration options pass through to the default plugin.

.releaserc

 {
   "plugins": [
     [
-      "@semantic-release/commit-analyzer",
+      "commit-analyzer-fail-on-no-release",
       {
         "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