From 1fd2c1f22108fe412184453e5c0f26d9b82ba048 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Thu, 18 Jul 2024 09:40:36 -0700 Subject: [PATCH] Stop using latest Node in CI (#59347) --- .github/workflows/ci.yml | 37 ++++++++-------------- .github/workflows/update-package-lock.yaml | 3 +- 2 files changed, 14 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01348aa5b65bd..068979c489825 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: - windows-latest - macos-14 node-version: - - '22' + - '22.4.x' - '20' - '18' - '16' @@ -37,7 +37,7 @@ jobs: bundle: - 'true' include: - - node-version: '*' + - node-version: 'lts/*' bundle: false os: ubuntu-latest exclude: @@ -83,8 +83,7 @@ jobs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 with: - node-version: '*' - check-latest: true + node-version: 'lts/*' - run: npm ci - name: Run tests with coverage @@ -109,8 +108,7 @@ jobs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 with: - node-version: '*' - check-latest: true + node-version: 'lts/*' - run: npm ci - name: Linter @@ -123,8 +121,7 @@ jobs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 with: - node-version: '*' - check-latest: true + node-version: 'lts/*' - run: npm ci - name: Unused exports @@ -137,8 +134,7 @@ jobs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 with: - node-version: '*' - check-latest: true + node-version: 'lts/*' - run: npm ci - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 @@ -158,8 +154,7 @@ jobs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 with: - node-version: '*' - check-latest: true + node-version: 'lts/*' - run: npm ci - name: Installing browsers @@ -175,8 +170,7 @@ jobs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 with: - node-version: '*' - check-latest: true + node-version: 'lts/*' - run: npm ci - name: Build src @@ -190,8 +184,7 @@ jobs: - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 with: - node-version: '*' - check-latest: true + node-version: 'lts/*' - run: | npm --version # corepack enable npm @@ -239,8 +232,7 @@ jobs: - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 with: - node-version: '*' - check-latest: true + node-version: 'lts/*' - run: | npm --version # corepack enable npm @@ -273,8 +265,7 @@ jobs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 with: - node-version: '*' - check-latest: true + node-version: 'lts/*' - run: npm ci - name: Build scripts @@ -290,8 +281,7 @@ jobs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 with: - node-version: '*' - check-latest: true + node-version: 'lts/*' - run: npm ci - name: Build tsc @@ -310,8 +300,7 @@ jobs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 with: - node-version: '*' - check-latest: true + node-version: 'lts/*' - run: npm ci - name: Remove all baselines diff --git a/.github/workflows/update-package-lock.yaml b/.github/workflows/update-package-lock.yaml index 85df21ed623f9..b0d6bf86d7654 100644 --- a/.github/workflows/update-package-lock.yaml +++ b/.github/workflows/update-package-lock.yaml @@ -27,8 +27,7 @@ jobs: token: ${{ secrets.TS_BOT_GITHUB_TOKEN }} - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 with: - node-version: '*' - check-latest: true + node-version: 'lts/*' - run: | npm --version # corepack enable npm