Skip to content

Commit 46fb643

Browse files
authored
Revert "Use symbolic GitHub Actions Node.js versions (microsoft#49403)"
This reverts commit 0d7fbbb.
1 parent f72b1ba commit 46fb643

11 files changed

+53
-19
lines changed

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

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

1010
steps:
1111
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v3
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/
1317

1418
- name: Configure Git, Run Tests, Update Baselines, Apply Fixes
1519
run: |

.github/workflows/ci.yml

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

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

2521
steps:
2622
- uses: actions/checkout@v3
@@ -30,7 +26,6 @@ jobs:
3026
uses: actions/setup-node@v3
3127
with:
3228
node-version: ${{ matrix.node-version }}
33-
check-latest: true
3429
- name: Remove existing TypeScript
3530
run: |
3631
npm uninstall typescript --no-save
@@ -52,3 +47,4 @@ jobs:
5247

5348
- name: Validate the browser can import TypeScript
5449
run: gulp test-browser-integration
50+

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

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

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

.github/workflows/nightly.yaml

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

1616
steps:
1717
- uses: actions/checkout@v2
18-
- uses: actions/setup-node@v3
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/
1923
- name: Setup and publish nightly
2024
run: |
2125
npm whoami
@@ -26,4 +30,6 @@ jobs:
2630
gulp clean
2731
npm publish --tag next
2832
env:
29-
NPM_TOKEN: ${{secrets.npm_token}}
33+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
34+
CI: true
35+

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

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

1212
steps:
1313
- uses: actions/checkout@v2
14-
- uses: actions/setup-node@v3
14+
- name: Use node version 14
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: 14
1518
- name: Remove existing TypeScript
1619
run: |
1720
npm uninstall typescript --no-save
@@ -20,8 +23,10 @@ jobs:
2023
run: |
2124
npm ci
2225
npm test
26+
env:
27+
CI: true
2328
- name: Adding playwright
24-
run: npm install --no-save --no-package-lock playwright
29+
run: npm install --no-save --no-package-lock playwright
2530
- name: Validate the browser can import TypeScript
2631
run: gulp test-browser-integration
2732
- name: LKG, clean, and pack
@@ -30,6 +35,8 @@ jobs:
3035
gulp clean
3136
npm pack ./
3237
mv typescript-*.tgz typescript.tgz
38+
env:
39+
CI: true
3340
- name: Upload built tarfile
3441
uses: actions/upload-artifact@v1
3542
with:

.github/workflows/rich-navigation.yml

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

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

2426
- name: Install dependencies
2527
run: npm ci

.github/workflows/set-version.yaml

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

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

.github/workflows/sync-branch.yaml

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

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

.github/workflows/twoslash-repros.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ jobs:
2323
if: ${{ github.repository == 'microsoft/TypeScript' && !github.event.label && !github.event.inputs.bisect_issue }}
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/setup-node@v3
26+
- name: Use node
27+
uses: actions/setup-node@v3
2728
- uses: microsoft/TypeScript-Twoslash-Repro-Action@master
28-
with:
29+
with:
2930
github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
30-
31+
3132
bisect:
3233
if: ${{ github.event.label.name == 'Bisect Repro' || github.event.inputs.bisect_issue }}
3334
runs-on: ubuntu-latest
@@ -36,7 +37,9 @@ jobs:
3637
with:
3738
fetch-depth: 0
3839
- uses: actions/setup-node@v3
39-
- uses: microsoft/TypeScript-Twoslash-Repro-Action@master
4040
with:
41+
node-version: 16
42+
- uses: microsoft/TypeScript-Twoslash-Repro-Action@master
43+
with:
4144
github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
4245
bisect: ${{ github.event.issue.number || github.event.inputs.bisect_issue }}

.github/workflows/update-lkg.yml

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

1010
steps:
1111
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v3
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/
1317

1418
- name: Configure Git and Update LKG
1519
run: |

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ 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/
1821

1922
- name: Configure git and update package-lock.json
2023
run: |

0 commit comments

Comments
 (0)