Skip to content

Commit 10b5059

Browse files
authored
Always set node-version for setup-node (#58102)
1 parent c3f1854 commit 10b5059

9 files changed

+20
-0
lines changed

.github/workflows/accept-baselines-fix-lints.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
with:
2222
token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
2323
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
24+
with:
25+
node-version: 'lts/*'
2426

2527
- name: Configure Git, Run Tests, Update Baselines, Apply Fixes
2628
run: |

.github/workflows/insiders.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2424
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
25+
with:
26+
node-version: 'lts/*'
2527
- run: |
2628
npm --version
2729
# corepack enable npm
@@ -43,6 +45,7 @@ jobs:
4345
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4446
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
4547
with:
48+
node-version: 'lts/*'
4649
# Use NODE_AUTH_TOKEN environment variable to authenticate to this registry.
4750
registry-url: https://registry.npmjs.org/
4851
- run: |

.github/workflows/lkg.yml

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
ref: ${{ inputs.branch_name }}
3333
token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
3434
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
35+
with:
36+
node-version: 'lts/*'
3537
- run: |
3638
npm --version
3739
# corepack enable npm

.github/workflows/new-release-branch.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ jobs:
5656
fetch-depth: 0 # Default is 1; need to set to 0 to get the benefits of blob:none.
5757
token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
5858
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
59+
with:
60+
node-version: 'lts/*'
5961
- run: |
6062
npm --version
6163
# corepack enable npm

.github/workflows/nightly.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2525
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
26+
with:
27+
node-version: 'lts/*'
2628
- run: |
2729
npm --version
2830
# corepack enable npm
@@ -43,6 +45,7 @@ jobs:
4345
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4446
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
4547
with:
48+
node-version: 'lts/*'
4649
# Use NODE_AUTH_TOKEN environment variable to authenticate to this registry.
4750
registry-url: https://registry.npmjs.org/
4851
- run: |

.github/workflows/release-branch-artifact.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2323
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
24+
with:
25+
node-version: 'lts/*'
2426
- run: |
2527
npm --version
2628
# corepack enable npm

.github/workflows/set-version.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ jobs:
5454
ref: ${{ inputs.branch_name }}
5555
token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
5656
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
57+
with:
58+
node-version: 'lts/*'
5759
- run: |
5860
npm --version
5961
# corepack enable npm

.github/workflows/sync-branch.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343

4444
steps:
4545
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
46+
with:
47+
node-version: 'lts/*'
4648
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4749
with:
4850
ref: ${{ inputs.branch_name }}

.github/workflows/twoslash-repros.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ jobs:
5656
- if: ${{ !github.event.inputs.bisect }}
5757
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
5858
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
59+
with:
60+
node-version: 'lts/*'
5961
- uses: microsoft/TypeScript-Twoslash-Repro-Action@8680b5b290d48a7badbc7ba65971d526c61b86b8 # master
6062
with:
6163
github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)