Compare commits
2 commits
0ef8c6e641
...
ebb04485c8
Author | SHA1 | Date | |
---|---|---|---|
ebb04485c8 | |||
58c0b1e613 |
2 changed files with 6 additions and 9 deletions
13
README.md
13
README.md
|
@ -12,15 +12,12 @@ Returns true if inside CI. Otherwise returns false.
|
|||
|
||||
## `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 'We are inside CI, install some stuff'`
|
||||
|
||||
Example:
|
||||
|
||||
`is-ci || husky install`
|
||||
* `in-ci && echo 'running inside CI'`
|
||||
|
||||
## `not-ci`
|
||||
|
||||
Inverse of the above command
|
||||
Inverse of the above:
|
||||
|
||||
`not-ci && husky install`
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "inside-ci",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"description": "Quick tool to check if we are inside CI",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in a new issue