mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Use symbolic GitHub Actions Node.js versions (#49403)
This commit is contained in:
parent
2f13eba42c
commit
0d7fbbb415
@ -9,11 +9,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use node version 14
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 14
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- uses: actions/setup-node@v3
|
||||
|
||||
- name: Configure Git, Run Tests, Update Baselines, Apply Fixes
|
||||
run: |
|
||||
|
||||
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -16,7 +16,11 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x, 16.x, 18.x]
|
||||
# Test the latest version of Node.js plus the last two LTS versions.
|
||||
node-version:
|
||||
- "*"
|
||||
- lts/*
|
||||
- lts/-1
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -26,6 +30,7 @@ jobs:
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
check-latest: true
|
||||
- name: Remove existing TypeScript
|
||||
run: |
|
||||
npm uninstall typescript --no-save
|
||||
@ -47,4 +52,3 @@ jobs:
|
||||
|
||||
- name: Validate the browser can import TypeScript
|
||||
run: gulp test-browser-integration
|
||||
|
||||
|
||||
5
.github/workflows/new-release-branch.yaml
vendored
5
.github/workflows/new-release-branch.yaml
vendored
@ -9,10 +9,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Use node version 14.x
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 14.x
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 5
|
||||
|
||||
10
.github/workflows/nightly.yaml
vendored
10
.github/workflows/nightly.yaml
vendored
@ -15,11 +15,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use node version 14
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 14
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- uses: actions/setup-node@v3
|
||||
- name: Setup and publish nightly
|
||||
run: |
|
||||
npm whoami
|
||||
@ -30,6 +26,4 @@ jobs:
|
||||
gulp clean
|
||||
npm publish --tag next
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
||||
CI: true
|
||||
|
||||
NPM_TOKEN: ${{secrets.npm_token}}
|
||||
|
||||
11
.github/workflows/release-branch-artifact.yaml
vendored
11
.github/workflows/release-branch-artifact.yaml
vendored
@ -11,10 +11,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use node version 14
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 14
|
||||
- uses: actions/setup-node@v3
|
||||
- name: Remove existing TypeScript
|
||||
run: |
|
||||
npm uninstall typescript --no-save
|
||||
@ -23,10 +20,8 @@ jobs:
|
||||
run: |
|
||||
npm ci
|
||||
npm test
|
||||
env:
|
||||
CI: true
|
||||
- name: Adding playwright
|
||||
run: npm install --no-save --no-package-lock playwright
|
||||
run: npm install --no-save --no-package-lock playwright
|
||||
- name: Validate the browser can import TypeScript
|
||||
run: gulp test-browser-integration
|
||||
- name: LKG, clean, and pack
|
||||
@ -35,8 +30,6 @@ jobs:
|
||||
gulp clean
|
||||
npm pack ./
|
||||
mv typescript-*.tgz typescript.tgz
|
||||
env:
|
||||
CI: true
|
||||
- name: Upload built tarfile
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
|
||||
2
.github/workflows/rich-navigation.yml
vendored
2
.github/workflows/rich-navigation.yml
vendored
@ -20,8 +20,6 @@ jobs:
|
||||
fetch-depth: 5
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 14
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
5
.github/workflows/set-version.yaml
vendored
5
.github/workflows/set-version.yaml
vendored
@ -9,10 +9,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Use node version 14.x
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 14.x
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.event.client_payload.branch_name }}
|
||||
|
||||
5
.github/workflows/sync-branch.yaml
vendored
5
.github/workflows/sync-branch.yaml
vendored
@ -14,10 +14,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Use node version 14.x
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 14.x
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.event.inputs.branch_name || github.event.client_payload.branch_name }}
|
||||
|
||||
11
.github/workflows/twoslash-repros.yaml
vendored
11
.github/workflows/twoslash-repros.yaml
vendored
@ -23,12 +23,11 @@ jobs:
|
||||
if: ${{ github.repository == 'microsoft/TypeScript' && !github.event.label && !github.event.inputs.bisect_issue }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Use node
|
||||
uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: microsoft/TypeScript-Twoslash-Repro-Action@master
|
||||
with:
|
||||
with:
|
||||
github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
|
||||
|
||||
|
||||
bisect:
|
||||
if: ${{ github.event.label.name == 'Bisect Repro' || github.event.inputs.bisect_issue }}
|
||||
runs-on: ubuntu-latest
|
||||
@ -37,9 +36,7 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
- uses: microsoft/TypeScript-Twoslash-Repro-Action@master
|
||||
with:
|
||||
with:
|
||||
github-token: ${{ secrets.TS_BOT_GITHUB_TOKEN }}
|
||||
bisect: ${{ github.event.issue.number || github.event.inputs.bisect_issue }}
|
||||
|
||||
6
.github/workflows/update-lkg.yml
vendored
6
.github/workflows/update-lkg.yml
vendored
@ -9,11 +9,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use node version 14
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 14
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- uses: actions/setup-node@v3
|
||||
|
||||
- name: Configure Git and Update LKG
|
||||
run: |
|
||||
|
||||
3
.github/workflows/update-package-lock.yaml
vendored
3
.github/workflows/update-package-lock.yaml
vendored
@ -15,9 +15,6 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 14
|
||||
registry-url: https://registry.npmjs.org/
|
||||
|
||||
- name: Configure git and update package-lock.json
|
||||
run: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user