Skip to content

Commit b8050e1

Browse files
committed
deps: ci-info@4.3.1
1 parent c31de22 commit b8050e1

File tree

5 files changed

+24
-20
lines changed

5 files changed

+24
-20
lines changed

node_modules/ci-info/index.js

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,24 @@ 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'

node_modules/ci-info/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ci-info",
3-
"version": "4.3.0",
3+
"version": "4.3.1",
44
"description": "Get details about the current Continuous Integration environment",
55
"main": "index.js",
66
"typings": "index.d.ts",

package-lock.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"archy": "~1.0.0",
9898
"cacache": "^20.0.1",
9999
"chalk": "^5.6.2",
100-
"ci-info": "^4.3.0",
100+
"ci-info": "^4.3.1",
101101
"cli-columns": "^4.0.0",
102102
"fastest-levenshtein": "^1.0.16",
103103
"fs-minipass": "^3.0.3",
@@ -3040,9 +3040,9 @@
30403040
}
30413041
},
30423042
"node_modules/ci-info": {
3043-
"version": "4.3.0",
3044-
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.0.tgz",
3045-
"integrity": "sha512-l+2bNRMiQgcfILUi33labAZYIWlH1kWDp+ecNo5iisRKrbm0xcRyCww71/YU0Fkw0mAFpz9bJayXPjey6vkmaQ==",
3043+
"version": "4.3.1",
3044+
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz",
3045+
"integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==",
30463046
"funding": [
30473047
{
30483048
"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": "^20.0.1",
6767
"chalk": "^5.6.2",
68-
"ci-info": "^4.3.0",
68+
"ci-info": "^4.3.1",
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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict'
22

3+
// Comment to trigger tests
4+
35
const crypto = require('node:crypto')
46
const fs = require('node:fs')
57
const npa = require('npm-package-arg')
@@ -700,7 +702,7 @@ t.test('automatic provenance in unsupported environment', async t => {
700702
t.test('automatic provenance with incorrect permissions', async t => {
701703
mockGlobals(t, {
702704
'process.env': {
703-
CI: false,
705+
CI: true,
704706
GITHUB_ACTIONS: true,
705707
ACTIONS_ID_TOKEN_REQUEST_URL: undefined,
706708
},

0 commit comments

Comments
 (0)