1.0.1 • Published 7 years ago

condition-codefresh v1.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

condition-codefresh

Condition verifier plugin for semantic-release that checks if this build is running in codefresh CI/CD.

Build Status Code Coverage Dependencies version MIT License PRs Welcome Roadmap Semantic Release Commitizen

Watch on GitHub Star on GitHub Tweet

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