File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 13
13
required : true
14
14
type : string
15
15
default : git
16
+ installFlags :
17
+ description : ' extra flags to pass to npm install'
18
+ required : false
19
+ type : string
20
+ default : ' '
16
21
17
22
workflow_dispatch :
18
23
inputs :
26
31
required : true
27
32
type : string
28
33
default : git
34
+ installFlags :
35
+ description : ' extra flags to pass to npm install'
36
+ required : false
37
+ type : string
38
+ default : ' '
29
39
30
40
jobs :
31
41
build-nodejs :
@@ -307,6 +317,9 @@ jobs:
307
317
if (meta.install) {
308
318
install_flags.push(meta.install.slice(1))
309
319
}
320
+ if [[ "${{ inputs.installFlags }}" != "" ]]; then
321
+ install_flags.push("${{ inputs.installFlags }}")
322
+ fi
310
323
const context = JSON.parse(execSync(`npm show ${package} --json`))
311
324
const test = meta.scripts ? meta.scripts.map((script) => `npm run ${script}`) : ['npm test']
312
325
Original file line number Diff line number Diff line change 7
7
description : npm version to test
8
8
type : string
9
9
required : true
10
+ installFlags :
11
+ description : ' extra flags to pass to npm install'
12
+ required : false
13
+ type : string
14
+ default : ' '
10
15
workflow_dispatch :
11
16
inputs :
12
17
npmVersion :
13
18
description : npm version to test
14
19
type : string
15
20
required : true
21
+ installFlags :
22
+ description : ' extra flags to pass to npm install'
23
+ required : false
24
+ type : string
25
+ default : ' '
16
26
17
27
jobs :
18
28
node-integration :
28
38
with :
29
39
nodeVersion : ${{ matrix.nodeVersion }}
30
40
npmVersion : ${{ inputs.npmVersion }}
41
+ installFlags : ${{ inputs.installFlags }}
You can’t perform that action at this time.
0 commit comments