Skip to content

Commit bdeabff

Browse files
committed
deps: ci-info@4.4.0
1 parent d8ebcd5 commit bdeabff

File tree

6 files changed

+35
-22
lines changed

6 files changed

+35
-22
lines changed

node_modules/ci-info/index.js

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,30 @@ exports.name = null
1515
exports.isPR = null
1616
exports.id = null
1717

18-
vendors.forEach(function (vendor) {
19-
const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env]
20-
const isCI = envs.every(function (obj) {
21-
return checkEnv(obj)
22-
})
18+
if (env.CI !== 'false') {
19+
vendors.forEach(function (vendor) {
20+
const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env]
21+
const isCI = envs.every(function (obj) {
22+
return checkEnv(obj)
23+
})
2324

24-
exports[vendor.constant] = isCI
25+
exports[vendor.constant] = isCI
2526

26-
if (!isCI) {
27-
return
28-
}
27+
if (!isCI) {
28+
return
29+
}
2930

30-
exports.name = vendor.name
31-
exports.isPR = checkPR(vendor)
32-
exports.id = vendor.constant
33-
})
31+
exports.name = vendor.name
32+
exports.isPR = checkPR(vendor)
33+
exports.id = vendor.constant
34+
})
35+
}
3436

3537
exports.isCI = !!(
3638
env.CI !== 'false' && // Bypass all checks if CI env is explicitly set to 'false'
3739
(env.BUILD_ID || // Jenkins, Cloudbees
3840
env.BUILD_NUMBER || // Jenkins, TeamCity
39-
env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages
41+
env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages/Workers
4042
env.CI_APP_ID || // Appflow
4143
env.CI_BUILD_ID || // Appflow
4244
env.CI_BUILD_NUMBER || // Appflow

node_modules/ci-info/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ci-info",
3-
"version": "4.2.0",
3+
"version": "4.4.0",
44
"description": "Get details about the current Continuous Integration environment",
55
"main": "index.js",
66
"typings": "index.d.ts",
@@ -36,14 +36,15 @@
3636
"CHANGELOG.md"
3737
],
3838
"scripts": {
39+
"build": "node sort-vendors.js && node create-typings.js",
3940
"lint:fix": "standard --fix",
4041
"test": "standard && node test.js",
4142
"prepare": "husky install || true"
4243
},
4344
"devDependencies": {
4445
"clear-module": "^4.1.2",
4546
"husky": "^9.1.7",
46-
"publint": "^0.3.8",
47+
"publint": "^0.3.12",
4748
"standard": "^17.1.2",
4849
"tape": "^5.9.0"
4950
},

node_modules/ci-info/vendors.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"env": "AGOLA_GIT_REF",
66
"pr": "AGOLA_PULL_REQUEST_ID"
77
},
8+
{
9+
"name": "Alpic",
10+
"constant": "ALPIC",
11+
"env": "ALPIC_HOST"
12+
},
813
{
914
"name": "Appcircle",
1015
"constant": "APPCIRCLE",
@@ -90,6 +95,11 @@
9095
"constant": "CLOUDFLARE_PAGES",
9196
"env": "CF_PAGES"
9297
},
98+
{
99+
"name": "Cloudflare Workers",
100+
"constant": "CLOUDFLARE_WORKERS",
101+
"env": "WORKERS_CI"
102+
},
93103
{
94104
"name": "Codefresh",
95105
"constant": "CODEFRESH",

package-lock.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"archy": "~1.0.0",
101101
"cacache": "^19.0.1",
102102
"chalk": "^5.6.2",
103-
"ci-info": "^4.2.0",
103+
"ci-info": "^4.4.0",
104104
"cli-columns": "^4.0.0",
105105
"fastest-levenshtein": "^1.0.16",
106106
"fs-minipass": "^3.0.3",
@@ -4467,9 +4467,9 @@
44674467
}
44684468
},
44694469
"node_modules/ci-info": {
4470-
"version": "4.2.0",
4471-
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.2.0.tgz",
4472-
"integrity": "sha512-cYY9mypksY8NRqgDB1XD1RiJL338v/551niynFTGkZOO2LHuB2OmOYxDIe/ttN9AHwrqdum1360G3ald0W9kCg==",
4470+
"version": "4.4.0",
4471+
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz",
4472+
"integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==",
44734473
"funding": [
44744474
{
44754475
"type": "github",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"archy": "~1.0.0",
6666
"cacache": "^19.0.1",
6767
"chalk": "^5.6.2",
68-
"ci-info": "^4.2.0",
68+
"ci-info": "^4.4.0",
6969
"cli-columns": "^4.0.0",
7070
"fastest-levenshtein": "^1.0.16",
7171
"fs-minipass": "^3.0.3",

workspaces/libnpmpublish/test/publish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ t.test('automatic provenance in unsupported environment', async t => {
700700
t.test('automatic provenance with incorrect permissions', async t => {
701701
mockGlobals(t, {
702702
'process.env': {
703-
CI: false,
703+
CI: true,
704704
GITHUB_ACTIONS: true,
705705
ACTIONS_ID_TOKEN_REQUEST_URL: undefined,
706706
},

0 commit comments

Comments
 (0)