README
Veritas Condition Jenkins
This is a semantic-release verifyRelease plug-in that will allow a release to continue only if all of the following conditions are true:
- The
JENKINS_URL
environment variable is set to any value (this should be a URL but the value is not verified) - The
GIT_BRANCH
environment variable is equal to the target branch ( default is'master'
)
If all of the above conditions are true, a new version of the package will be released.
Use
- Follow the basic setup instructions for semantic-release
- Install as a dev dependency.
npm i -D veritas-condition-jenkins
- Add the following to your package.json
"release": { "verifyConditions": "veritas-condition-jenkins" }