Skip to content

Commit 38a7c05

Browse files
authored
release-5.4: Always set node-version for setup-node (#58117)
1 parent b754fc3 commit 38a7c05

8 files changed

+15
-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/new-release-branch.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
fetch-depth: 0 # Default is 1; need to set to 0 to get the benefits of blob:none.
2525
token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
2626
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
27+
with:
28+
node-version: 'lts/*'
2729
- run: |
2830
npm --version
2931
# corepack enable npm

.github/workflows/nightly.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2727
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
2828
with:
29+
node-version: 'lts/*'
2930
# Use NODE_AUTH_TOKEN environment variable to authenticate to this registry.
3031
registry-url: https://registry.npmjs.org/
3132
- 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/rich-navigation.yml

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2828

2929
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
30+
with:
31+
node-version: 'lts/*'
3032

3133
- name: Install dependencies
3234
run: npm ci

.github/workflows/set-version.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
ref: ${{ github.event.client_payload.branch_name }}
2323
token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
2424
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
25+
with:
26+
node-version: 'lts/*'
2527
- run: |
2628
npm --version
2729
# corepack enable npm

.github/workflows/sync-branch.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424

2525
steps:
2626
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
27+
with:
28+
node-version: 'lts/*'
2729
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2830
with:
2931
ref: ${{ github.event.inputs.branch_name || github.event.client_payload.branch_name }}

.github/workflows/twoslash-repros.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
- if: ${{ !github.event.inputs.bisect }}
4242
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4343
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
44+
with:
45+
node-version: 'lts/*'
4446
- uses: microsoft/TypeScript-Twoslash-Repro-Action@8680b5b290d48a7badbc7ba65971d526c61b86b8 # master
4547
with:
4648
github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)