Compare commits
No commits in common. "ebb04485c8ef1600e260d06331f055184a78b2f7" and "0ef8c6e64112d3e63fabb880c4ed5f171a029ba0" have entirely different histories.
ebb04485c8
...
0ef8c6e641
2 changed files with 9 additions and 6 deletions
13
README.md
13
README.md
|
@ -12,12 +12,15 @@ Returns true if inside CI. Otherwise returns false.
|
|||
|
||||
## `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`
|
||||
|
||||
Inverse of the above:
|
||||
|
||||
`not-ci && husky install`
|
||||
Inverse of the above command
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "inside-ci",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.0",
|
||||
"description": "Quick tool to check if we are inside CI",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in a new issue