Compare commits

..

No commits in common. "ebb04485c8ef1600e260d06331f055184a78b2f7" and "0ef8c6e64112d3e63fabb880c4ed5f171a029ba0" have entirely different histories.

2 changed files with 9 additions and 6 deletions

View file

@ -12,12 +12,15 @@ Returns true if inside CI. Otherwise returns false.
## `inside-ci` or `in-ci` ## `inside-ci` or `in-ci`
Returns error code 0 if inside CI. Returns code 0 if inside CI. Otherwise returns an error code of 1.
* `in-ci && echo 'running inside CI'` * `inside-ci || echo 'We are not inside CI, install some stuff'`
* `in-ci && echo 'We are inside CI, install some stuff'`
Example:
`is-ci || husky install`
## `not-ci` ## `not-ci`
Inverse of the above: Inverse of the above command
`not-ci && husky install`

View file

@ -1,6 +1,6 @@
{ {
"name": "inside-ci", "name": "inside-ci",
"version": "1.1.1", "version": "1.1.0",
"description": "Quick tool to check if we are inside CI", "description": "Quick tool to check if we are inside CI",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {