Skip to content

Commit

Permalink
fix(misc): isCI should return a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Feb 17, 2023
1 parent bae35db commit 2899b3a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions packages/create-nx-workspace/bin/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ export function isCI() {
return (
process.env.CI === 'true' ||
process.env.TF_BUILD === 'true' ||
process.env['bamboo.buildKey'] ||
process.env.GITHUB_ACTIONS === 'true' ||
process.env.BUILDKITE === 'true' ||
process.env.CIRCLECI === 'true' ||
process.env.CIRRUS_CI === 'true' ||
process.env.CODEBUILD_BUILD_ID ||
process.env.GITHUB_ACTIONS === 'true' ||
process.env.GITLAB_CI ||
process.env.HEROKU_TEST_RUN_ID ||
process.env.BUILD_ID ||
process.env.BUILD_BUILDID ||
process.env.TEAMCITY_VERSION ||
process.env.TRAVIS === 'true'
process.env.TRAVIS === 'true' ||
!!process.env['bamboo.buildKey'] ||
!!process.env.CODEBUILD_BUILD_ID ||
!!process.env.GITLAB_CI ||
!!process.env.HEROKU_TEST_RUN_ID ||
!!process.env.BUILD_ID ||
!!process.env.BUILD_BUILDID ||
!!process.env.TEAMCITY_VERSION
);
}

Expand Down
18 changes: 9 additions & 9 deletions packages/nx/src/utils/is-ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ export function isCI() {
return (
process.env.CI === 'true' ||
process.env.TF_BUILD === 'true' ||
process.env['bamboo.buildKey'] ||
process.env.GITHUB_ACTIONS === 'true' ||
process.env.BUILDKITE === 'true' ||
process.env.CIRCLECI === 'true' ||
process.env.CIRRUS_CI === 'true' ||
process.env.CODEBUILD_BUILD_ID ||
process.env.GITHUB_ACTIONS === 'true' ||
process.env.GITLAB_CI ||
process.env.HEROKU_TEST_RUN_ID ||
process.env.BUILD_ID ||
process.env.BUILD_BUILDID ||
process.env.TEAMCITY_VERSION ||
process.env.TRAVIS === 'true'
process.env.TRAVIS === 'true' ||
!!process.env['bamboo.buildKey'] ||
!!process.env.CODEBUILD_BUILD_ID ||
!!process.env.GITLAB_CI ||
!!process.env.HEROKU_TEST_RUN_ID ||
!!process.env.BUILD_ID ||
!!process.env.BUILD_BUILDID ||
!!process.env.TEAMCITY_VERSION
);
}

1 comment on commit 2899b3a

@vercel
Copy link

@vercel vercel bot commented on 2899b3a Feb 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx.dev
nx-dev-nrwl.vercel.app
nx-five.vercel.app

Please sign in to comment.