README
Semantic-release-verify-deps
semantic-release plugin to validate the format of dependencies before releasing.
Why create this plugin
In the typical gitflow process, we release tags on master branch and we implement on develop branch.
When doing implementation we sometimes need to change deps to 'floating' deps like :
- git private deps
- local path deps.
Even if this is useful on dev
branch, it is a bad idea to release on master branch a version with floating dependencies.
Current plugin lets you define a validation/regular expression pattern to avoid this kind of mistake.
Installation
npm install --save-dev semantic-release-verify-deps
Usage
Plugin must be set within the plugin definition in the Semantic-release configuration file on Verify Conditions step in the project's package.json
file.
For example, you can force each dependency to finish with a digit in package.json by doing :
"release": {
"verifyConditions": [
{
"path": "semantic-release-verify-deps",
"dependencies": true,
"devDependencies": false,
"regExps": [
"\\D