Quick tool to check if we are inside a CI environment
Find a file
Jonatan Nilsson 6e6d989a50
All checks were successful
/ deploy (push) Successful in 27s
Implemented new cli: in-ci and not-ci
2024-11-19 10:44:37 +00:00
.forgejo/workflows Trim the fat and fix typings 2024-11-19 00:13:06 +00:00
.gitignore Initial commit 2024-11-18 23:24:04 +00:00
.npmrc remove package-lock.json 2024-11-19 00:03:24 +00:00
index.d.ts Trim the fat and fix typings 2024-11-19 00:13:06 +00:00
index.js Trim the fat and fix typings 2024-11-19 00:13:06 +00:00
LICENSE Initial commit 2024-11-18 23:24:04 +00:00
not.js Implemented new cli: in-ci and not-ci 2024-11-19 10:44:37 +00:00
package-build.json Implemented new cli: in-ci and not-ci 2024-11-19 10:44:37 +00:00
package.json Implemented new cli: in-ci and not-ci 2024-11-19 10:44:37 +00:00
README.md Trim the fat and fix typings 2024-11-19 00:13:06 +00:00
test.mjs Implemented new cli: in-ci and not-ci 2024-11-19 10:44:37 +00:00

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