Skip to content

Commit

Permalink
Support GitHub Actions (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispat authored and sindresorhus committed Sep 27, 2019
1 parent 03ea72b commit 79d1303
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Expand Up @@ -92,6 +92,10 @@ function supportsColor(haveStream, streamIsTTY) {
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
}

if ('GITHUB_ACTIONS' in env) {
return 1;
}

if (env.COLORTERM === 'truecolor') {
return 3;
}
Expand Down

0 comments on commit 79d1303

Please sign in to comment.