23 lines
313 B
Markdown
23 lines
313 B
Markdown
# inside-ci
|
|
|
|
Quick tool to check if we are inside a CI environment
|
|
|
|
# API
|
|
|
|
`insideCi()`
|
|
|
|
Returns true if inside CI. Otherwise returns false.
|
|
|
|
# CLI
|
|
|
|
## `inside-ci` or `in-ci`
|
|
|
|
Returns error code 0 if inside CI.
|
|
|
|
* `in-ci && echo 'running inside CI'`
|
|
|
|
## `not-ci`
|
|
|
|
Inverse of the above:
|
|
|
|
`not-ci && husky install`
|