condition-codefresh
v1.0.1
Published
Condition verifier plugin for [`semantic-release`][semantic-release] that checks if this build is running in [`codefresh`][codefresh] CI/CD.
Downloads
6
Readme
condition-codefresh
Condition verifier plugin for semantic-release
that checks if this build is running in codefresh
CI/CD.
What does it do
It verifies that the release process is being executed inside Codefresh by checking for CF_BUILD_TIMESTAMP
environment variable and also that this is executed in the right branch configured to release from using CF_BRANCH
Note: Codefresh is relatively...fresh and they are continuously improving their services. I contacted them about adding support for more specific environment variables(like travis environment variables) Some functionality might change if their platform changes. ¯\(ツ)/¯
Installation
This module is distributed via npm which is bundled with node as one of your project's devDependencies
:
npm i condition-codefresh -D
Usage
Configure the releases
configuration in your package.json to tell semantic-release to use this in the verifyConditions
step:
{
"release": {
"verifyConditions": "condition-codefresh",
}
}
LICENSE
MIT