2024-11-18 23:24:04 +00:00
|
|
|
# inside-ci
|
|
|
|
|
2024-11-18 23:57:35 +00:00
|
|
|
Quick tool to check if we are inside a CI environment
|
|
|
|
|
|
|
|
# API
|
|
|
|
|
|
|
|
`insideCi()`
|
|
|
|
|
|
|
|
Returns true if inside CI. Otherwise returns false.
|
|
|
|
|
|
|
|
# CLI
|
|
|
|
|
2024-11-19 10:46:15 +00:00
|
|
|
## `inside-ci` or `in-ci`
|
2024-11-18 23:57:35 +00:00
|
|
|
|
2024-11-22 05:13:45 +00:00
|
|
|
Returns error code 0 if inside CI.
|
2024-11-18 23:57:35 +00:00
|
|
|
|
2024-11-22 05:13:45 +00:00
|
|
|
* `in-ci && echo 'running inside CI'`
|
2024-11-19 10:46:15 +00:00
|
|
|
|
|
|
|
## `not-ci`
|
|
|
|
|
2024-11-22 05:13:45 +00:00
|
|
|
Inverse of the above:
|
|
|
|
|
|
|
|
`not-ci && husky install`
|