Package Exports
- @npmcli/ci-detect
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@npmcli/ci-detect) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@npmcli/ci-detect
Detect what kind of CI environment the program is in
USAGE
const ciDetect = require('@npmcli/ci-detect')
// false if not in CI
// otherwise, a string indicating the CI environment type
const inCI = ciDetect()
CIs Detected
Returns one of the following strings, or false
if none match, by looking
at the appropriate environment variables.
- gerrit
- gitlab
- circle-ci
- drone
- github-actions
- tddium
- jenkins
- gocd
- codeship (or any that set
CI_NAME
environment variable) - travis-ci
- custom (anything else that sets
CI
environment variable)