diff --git a/packages/playground/cli/src/utils/progress.ts b/packages/playground/cli/src/utils/progress.ts index f8ec8cc188..65f8af7cd0 100644 --- a/packages/playground/cli/src/utils/progress.ts +++ b/packages/playground/cli/src/utils/progress.ts @@ -1,17 +1,20 @@ export function shouldRenderProgress( writeStream?: { isTTY?: boolean } | null ): boolean { - const termIsDumb = (process.env['TERM'] || '').toLowerCase() === 'dumb'; - const ciFlag = (process.env['CI'] || '').toLowerCase(); - const runningInCI = ciFlag === '1' || ciFlag === 'true'; - - if (termIsDumb || runningInCI) { + if (process.env['CI'] === 'true' || process.env['CI'] === '1') { + return false; + } + if ( + process.env['GITHUB_ACTIONS'] === 'true' || + process.env['GITHUB_ACTIONS'] === '1' + ) { + return false; + } + if ((process.env['TERM'] || '').toLowerCase() === 'dumb') { return false; } - if (writeStream) { return Boolean(writeStream.isTTY); } - - return true; + return process.stdout.isTTY; }