Skip to content

Commit 7d550ad

Browse files
RichienbBethGriggs
authored andcommitted
tty: support more CI services in getColorDepth
PR-URL: #40385 Refs: sindresorhus/yoctocolors#5 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 579f01c commit 7d550ad

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lib/internal/tty.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,15 @@ function getColorDepth(env = process.env) {
159159
}
160160

161161
if (env.CI) {
162-
if ('TRAVIS' in env || 'CIRCLECI' in env || 'APPVEYOR' in env ||
163-
'GITLAB_CI' in env || env.CI_NAME === 'codeship') {
162+
if ([
163+
'APPVEYOR',
164+
'BUILDKITE',
165+
'CIRCLECI',
166+
'DRONE',
167+
'GITHUB_ACTIONS',
168+
'GITLAB_CI',
169+
'TRAVIS',
170+
].some((sign) => sign in env) || env.CI_NAME === 'codeship') {
164171
return COLORS_256;
165172
}
166173
return COLORS_2;

0 commit comments

Comments
 (0)