Giter VIP home page Giter VIP logo

commit-analyzer-fail-on-no-release's Introduction

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

commit-analyzer-fail-on-no-release's People

Contributors

dependabot[bot] avatar evelynhathaway avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

commit-analyzer-fail-on-no-release's Issues

Update to @semantic-release/commit-analyzer 9

@semantic-release/commit-analyzer 9 is out and it supports semantic-release >18.0.0, while the v8 of commit-analyzer doesn't. This drives to a dependency inconsistency when installing this plugin with semantic-release 18.

โžœ npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @wonderflow/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/semantic-release
npm ERR!   dev semantic-release@"18.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer semantic-release@">=16.0.0 <18.0.0" from @semantic-release/[email protected]
npm ERR! node_modules/@semantic-release/commit-analyzer
npm ERR!   peer @semantic-release/commit-analyzer@"^8.0.0" from [email protected]
npm ERR!   node_modules/commit-analyzer-fail-on-no-release
npm ERR!     dev commit-analyzer-fail-on-no-release@"1.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!

We can't downgrade to semantic-release 17 because @semantic-release/changelog (and most plugins) requires semantic-release 18+

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.