Skip to content

Commit 673509c

Browse files
Merge pull request #223 from step-security/ci/yarn-version-input
ci: yarn version given as input workflows
2 parents 80f7757 + c55c5ac commit 673509c

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/actions_release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ on:
1414
description: "Node.js version to use"
1515
required: false
1616
default: "24"
17+
yarn_version:
18+
description: "Specify a yarn version"
19+
required: false
20+
type: string
21+
default: "4.9.2"
1722

1823
permissions:
1924
contents: read
@@ -29,3 +34,4 @@ jobs:
2934
tag: "${{ github.event.inputs.tag }}"
3035
script: "${{ github.event.inputs.script }}"
3136
node_version: ${{ github.event.inputs.node_version || '24' }}
37+
yarn_version: ${{ github.event.inputs.yarn_version || '4.9.2' }}

.github/workflows/audit_package.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on:
1919
description: "Node.js version to use"
2020
required: false
2121
default: "24"
22+
yarn_version:
23+
description: "Specify a yarn version"
24+
required: false
25+
type: string
26+
default: "4.9.2"
2227

2328
schedule:
2429
- cron: "0 0 * * 1"
@@ -31,6 +36,7 @@ jobs:
3136
package_manager: "yarn"
3237
script: ${{ inputs.script || 'yarn run all' }}
3338
node_version: ${{ inputs.node_version || '24' }}
39+
yarn_version: ${{ github.event.inputs.yarn_version || '4.9.2' }}
3440

3541
permissions:
3642
contents: write

.github/workflows/auto_cherry_pick.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on:
1919
description: "Node.js version to use"
2020
required: false
2121
default: "24"
22+
yarn_version:
23+
description: "Specify a yarn version"
24+
required: false
25+
type: string
26+
default: "4.9.2"
2227

2328
pull_request:
2429
types: [opened, synchronize, labeled]
@@ -41,4 +46,6 @@ jobs:
4146
script: ${{ inputs.script || 'yarn run all' }}
4247
mode: ${{ github.event_name == 'pull_request' && 'verify' || inputs.mode }}
4348
node_version: ${{ inputs.node_version || '24' }}
49+
yarn_version: ${{ github.event.inputs.yarn_version || '4.9.2' }}
50+
4451

0 commit comments

Comments
 (0)