mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
14 lines
244 B
JavaScript
14 lines
244 B
JavaScript
export function isCi() {
|
|
const ciEnvironments = [
|
|
"CI",
|
|
"TF_BUILD", // Azure devops does not set CI, but TF_BUILD
|
|
];
|
|
|
|
for (const env of ciEnvironments) {
|
|
if (process.env[env]) {
|
|
return true;
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|