From 4dfec0bf00108689441191f497473c5f29f8675e Mon Sep 17 00:00:00 2001 From: Andrea Amorosi Date: Fri, 1 Sep 2023 16:23:54 +0000 Subject: [PATCH] chore(ci): pin npm 9.x in workflows --- .github/actions/cached-node-modules/action.yml | 3 +-- .../workflows/reusable-run-linting-check-and-unit-tests.yml | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/actions/cached-node-modules/action.yml b/.github/actions/cached-node-modules/action.yml index c3df647248..d86c8d7b10 100644 --- a/.github/actions/cached-node-modules/action.yml +++ b/.github/actions/cached-node-modules/action.yml @@ -12,9 +12,8 @@ runs: using: "composite" steps: - name: Install npm - if: ${{ inputs.nodeVersion != '18' }} - shell: bash run: npm i -g npm@next-9 + shell: bash - name: Cache node modules id: cache-node-modules uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0 # v3.2.6 diff --git a/.github/workflows/reusable-run-linting-check-and-unit-tests.yml b/.github/workflows/reusable-run-linting-check-and-unit-tests.yml index 6c350943b1..407d2e25b3 100644 --- a/.github/workflows/reusable-run-linting-check-and-unit-tests.yml +++ b/.github/workflows/reusable-run-linting-check-and-unit-tests.yml @@ -20,8 +20,6 @@ jobs: with: node-version: ${{ matrix.version }} cache: "npm" - - name: Setup npm - run: npm i -g npm@latest - name: Setup dependencies uses: ./.github/actions/cached-node-modules with: