readme: Update docs a bit to be clearer
All checks were successful
/ deploy (push) Successful in 26s
All checks were successful
/ deploy (push) Successful in 26s
This commit is contained in:
parent
58c0b1e613
commit
ebb04485c8
1 changed files with 5 additions and 8 deletions
13
README.md
13
README.md
|
@ -12,15 +12,12 @@ Returns true if inside CI. Otherwise returns false.
|
||||||
|
|
||||||
## `inside-ci` or `in-ci`
|
## `inside-ci` or `in-ci`
|
||||||
|
|
||||||
Returns code 0 if inside CI. Otherwise returns an error code of 1.
|
Returns error code 0 if inside CI.
|
||||||
|
|
||||||
* `inside-ci || echo 'We are not inside CI, install some stuff'`
|
* `in-ci && echo 'running inside CI'`
|
||||||
* `in-ci && echo 'We are inside CI, install some stuff'`
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
`is-ci || husky install`
|
|
||||||
|
|
||||||
## `not-ci`
|
## `not-ci`
|
||||||
|
|
||||||
Inverse of the above command
|
Inverse of the above:
|
||||||
|
|
||||||
|
`not-ci && husky install`
|
||||||
|
|
Loading…
Reference in a new issue