inside-ci/README.md
Jonatan Nilsson e866e58dda
All checks were successful
/ deploy (push) Successful in 25s
Trim the fat and fix typings
Clean the code a bit.
Move comments to test to decrease dependency size
Minify package.json for extra.
2024-11-19 00:13:06 +00:00

23 lines
389 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`
Returns code 0 if inside CI. Otherwise returns an error code of 1.
`inside-ci || echo 'We are not inside CI, install some stuff'`
`inside-ci && echo 'We are inside CI, install some stuff'`
Example:
`is-ci || husky install`