Skip to content

adierkens/is-ci-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-ci-cli

Run different npm scripts in a CI environment

Install

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

$ npm install --dev is-ci-cli

Usage

In your package.json:

"scripts": {
	"test": "is-ci '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

About

Run different npm scripts in a CI environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%