is-ci-cli

2.2.0 • Public • Published

is-ci-cli CI

Run different npm scripts in a CI environment

Install

Ensure you have Node.js version 8+ installed. Then run the following:

npm install --dev is-ci-cli

Usage

In your package.json:

"scripts": {
  "test": "is-ci-cli test:ci test:local"
}

When in a CI environment (as detected by is-ci), this runs the first argument as an npm (or yarn) script. Otherwise, run the 2nd argument (if provided)

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i is-ci-cli

Weekly Downloads

42,922

Version

2.2.0

License

MIT

Unpacked Size

3.58 kB

Total Files

4

Last publish

Collaborators

  • cmurphy