Quick tool to check if we are inside a CI environment
Jonatan Nilsson
afac31914a
Some checks failed
/ deploy (push) Failing after 15s
Clean the code a bit. Move comments to test to decrease dependency size Minify package.json for extra. |
||
---|---|---|
.forgejo/workflows | ||
.gitignore | ||
.npmrc | ||
index.d.ts | ||
index.js | ||
LICENSE | ||
package-build.json | ||
package.json | ||
README.md | ||
test.mjs |
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