Skip to content

Commit 0d7fbbb

Browse files
authored
Use symbolic GitHub Actions Node.js versions (#49403)
1 parent 2f13eba commit 0d7fbbb

11 files changed

+19
-53
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: Use node version 14
13-
uses: actions/setup-node@v3
14-
with:
15-
node-version: 14
16-
registry-url: https://registry.npmjs.org/
12+
- uses: actions/setup-node@v3
1713

1814
- name: Configure Git, Run Tests, Update Baselines, Apply Fixes
1915
run: |

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [14.x, 16.x, 18.x]
19+
# Test the latest version of Node.js plus the last two LTS versions.
20+
node-version:
21+
- "*"
22+
- lts/*
23+
- lts/-1
2024

2125
steps:
2226
- uses: actions/checkout@v3
@@ -26,6 +30,7 @@ jobs:
2630
uses: actions/setup-node@v3
2731
with:
2832
node-version: ${{ matrix.node-version }}
33+
check-latest: true
2934
- name: Remove existing TypeScript
3035
run: |
3136
npm uninstall typescript --no-save
@@ -47,4 +52,3 @@ jobs:
4752

4853
- name: Validate the browser can import TypeScript
4954
run: gulp test-browser-integration
50-

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- name: Use node version 14.x
13-
uses: actions/setup-node@v3
14-
with:
15-
node-version: 14.x
12+
- uses: actions/setup-node@v3
1613
- uses: actions/checkout@v2
1714
with:
1815
fetch-depth: 5

.github/workflows/nightly.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v2
18-
- name: Use node version 14
19-
uses: actions/setup-node@v3
20-
with:
21-
node-version: 14
22-
registry-url: https://registry.npmjs.org/
18+
- uses: actions/setup-node@v3
2319
- name: Setup and publish nightly
2420
run: |
2521
npm whoami
@@ -30,6 +26,4 @@ jobs:
3026
gulp clean
3127
npm publish --tag next
3228
env:
33-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
34-
CI: true
35-
29+
NPM_TOKEN: ${{secrets.npm_token}}

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v2
14-
- name: Use node version 14
15-
uses: actions/setup-node@v3
16-
with:
17-
node-version: 14
14+
- uses: actions/setup-node@v3
1815
- name: Remove existing TypeScript
1916
run: |
2017
npm uninstall typescript --no-save
@@ -23,10 +20,8 @@ jobs:
2320
run: |
2421
npm ci
2522
npm test
26-
env:
27-
CI: true
2823
- name: Adding playwright
29-
run: npm install --no-save --no-package-lock playwright
24+
run: npm install --no-save --no-package-lock playwright
3025
- name: Validate the browser can import TypeScript
3126
run: gulp test-browser-integration
3227
- name: LKG, clean, and pack
@@ -35,8 +30,6 @@ jobs:
3530
gulp clean
3631
npm pack ./
3732
mv typescript-*.tgz typescript.tgz
38-
env:
39-
CI: true
4033
- name: Upload built tarfile
4134
uses: actions/upload-artifact@v1
4235
with:

.github/workflows/rich-navigation.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020
fetch-depth: 5
2121

2222
- uses: actions/setup-node@v3
23-
with:
24-
node-version: 14
2523

2624
- name: Install dependencies
2725
run: npm ci

.github/workflows/set-version.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- name: Use node version 14.x
13-
uses: actions/setup-node@v3
14-
with:
15-
node-version: 14.x
12+
- uses: actions/setup-node@v3
1613
- uses: actions/checkout@v2
1714
with:
1815
ref: ${{ github.event.client_payload.branch_name }}

.github/workflows/sync-branch.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- name: Use node version 14.x
18-
uses: actions/setup-node@v3
19-
with:
20-
node-version: 14.x
17+
- uses: actions/setup-node@v3
2118
- uses: actions/checkout@v2
2219
with:
2320
ref: ${{ github.event.inputs.branch_name || github.event.client_payload.branch_name }}

.github/workflows/twoslash-repros.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ jobs:
2323
if: ${{ github.repository == 'microsoft/TypeScript' && !github.event.label && !github.event.inputs.bisect_issue }}
2424
runs-on: ubuntu-latest
2525
steps:
26-
- name: Use node
27-
uses: actions/setup-node@v3
26+
- uses: actions/setup-node@v3
2827
- uses: microsoft/TypeScript-Twoslash-Repro-Action@master
29-
with:
28+
with:
3029
github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
31-
30+
3231
bisect:
3332
if: ${{ github.event.label.name == 'Bisect Repro' || github.event.inputs.bisect_issue }}
3433
runs-on: ubuntu-latest
@@ -37,9 +36,7 @@ jobs:
3736
with:
3837
fetch-depth: 0
3938
- uses: actions/setup-node@v3
40-
with:
41-
node-version: 16
4239
- uses: microsoft/TypeScript-Twoslash-Repro-Action@master
43-
with:
40+
with:
4441
github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
4542
bisect: ${{ github.event.issue.number || github.event.inputs.bisect_issue }}

.github/workflows/update-lkg.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: Use node version 14
13-
uses: actions/setup-node@v3
14-
with:
15-
node-version: 14
16-
registry-url: https://registry.npmjs.org/
12+
- uses: actions/setup-node@v3
1713

1814
- name: Configure Git and Update LKG
1915
run: |

.github/workflows/update-package-lock.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v2
1717
- uses: actions/setup-node@v3
18-
with:
19-
node-version: 14
20-
registry-url: https://registry.npmjs.org/
2118

2219
- name: Configure git and update package-lock.json
2320
run: |

0 commit comments

Comments
 (0)