From 8ab52d547990692e2f7a4dc5242ec61a3e42971e Mon Sep 17 00:00:00 2001 From: Marc Pichler Date: Tue, 17 Dec 2024 16:40:03 +0100 Subject: [PATCH] fix(ci): adapt workflow to use supported npm versions (#5277) --- .github/workflows/benchmark.yml | 2 +- .github/workflows/unit-test.yml | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 5227ce2b491..79dea2c71dc 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -10,7 +10,7 @@ jobs: fail-fast: false matrix: node_version: - - "18" + - "22" runs-on: self-hosted timeout-minutes: 10 env: diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index bba8e5347f7..32b62cfacfb 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -32,12 +32,16 @@ jobs: node-version: ${{ matrix.node_version }} - run: npm install -g npm@latest - if: ${{ matrix.node_version == '18' || matrix.node_version == '20' || matrix.node_version == '22' }} + if: ${{ matrix.node_version == '20' || matrix.node_version == '22' }} # npm@10.0.0 drops support for Node.js v14 and v16 - run: npm install -g npm@"<10.0.0" if: ${{ matrix.node_version == '14' || matrix.node_version == '16' }} + # npm@11.0.0 drops support for Node.js v18 + - run: npm install -g npm@"<11.0.0" + if: ${{ matrix.node_version == '18'}} + - name: Bootstrap run: npm ci @@ -65,7 +69,7 @@ jobs: cache: 'npm' cache-dependency-path: | package-lock.json - node-version: '18' + node-version: '20' - run: npm install -g npm@latest