diff --git a/.github/workflows/accept-baselines-fix-lints.yaml b/.github/workflows/accept-baselines-fix-lints.yaml index 2662646cc05fe..d0196d1e29206 100644 --- a/.github/workflows/accept-baselines-fix-lints.yaml +++ b/.github/workflows/accept-baselines-fix-lints.yaml @@ -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: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b95b0481ed251..3ea0ee5a4eb82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 - diff --git a/.github/workflows/new-release-branch.yaml b/.github/workflows/new-release-branch.yaml index 90b8bbdf5efdb..fa1d0a070750d 100644 --- a/.github/workflows/new-release-branch.yaml +++ b/.github/workflows/new-release-branch.yaml @@ -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 diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index d255a324f7947..6333c75b4b052 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -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}} diff --git a/.github/workflows/release-branch-artifact.yaml b/.github/workflows/release-branch-artifact.yaml index 17bb3be4680d6..4e1578ecd460f 100644 --- a/.github/workflows/release-branch-artifact.yaml +++ b/.github/workflows/release-branch-artifact.yaml @@ -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: diff --git a/.github/workflows/rich-navigation.yml b/.github/workflows/rich-navigation.yml index 82ba9bf54f1df..1c955f5973461 100644 --- a/.github/workflows/rich-navigation.yml +++ b/.github/workflows/rich-navigation.yml @@ -20,8 +20,6 @@ jobs: fetch-depth: 5 - uses: actions/setup-node@v3 - with: - node-version: 14 - name: Install dependencies run: npm ci diff --git a/.github/workflows/set-version.yaml b/.github/workflows/set-version.yaml index 5b1338daff2aa..567fba84e030e 100644 --- a/.github/workflows/set-version.yaml +++ b/.github/workflows/set-version.yaml @@ -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 }} diff --git a/.github/workflows/sync-branch.yaml b/.github/workflows/sync-branch.yaml index fae67017c617b..2928d072348e3 100644 --- a/.github/workflows/sync-branch.yaml +++ b/.github/workflows/sync-branch.yaml @@ -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 }} diff --git a/.github/workflows/twoslash-repros.yaml b/.github/workflows/twoslash-repros.yaml index 36a97b49ac5ce..3ff59cf2e56e2 100644 --- a/.github/workflows/twoslash-repros.yaml +++ b/.github/workflows/twoslash-repros.yaml @@ -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 }} diff --git a/.github/workflows/update-lkg.yml b/.github/workflows/update-lkg.yml index cac9c6c4c0665..53e3aaa750aa8 100644 --- a/.github/workflows/update-lkg.yml +++ b/.github/workflows/update-lkg.yml @@ -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: | diff --git a/.github/workflows/update-package-lock.yaml b/.github/workflows/update-package-lock.yaml index 1c54603f9ba1c..da64c80daccc8 100644 --- a/.github/workflows/update-package-lock.yaml +++ b/.github/workflows/update-package-lock.yaml @@ -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: |