inside-ci/README.md
Jonatan Nilsson ebb04485c8
All checks were successful
/ deploy (push) Successful in 26s
readme: Update docs a bit to be clearer
2024-11-22 05:13:45 +00:00

313 B

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