inside-ci/README.md

24 lines
313 B
Markdown
Raw Permalink Normal View History

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
Returns error code 0 if inside CI.
2024-11-18 23:57:35 +00:00
* `in-ci && echo 'running inside CI'`
2024-11-19 10:46:15 +00:00
## `not-ci`
Inverse of the above:
`not-ci && husky install`