From 656ccfc94c1d2decc4f620b9b7e17a0fd6409813 Mon Sep 17 00:00:00 2001 From: Yogesh Chaudhary Date: Wed, 29 Apr 2026 10:50:20 +0530 Subject: [PATCH] chore: use setup-node-npm in test workflow for consistent npm version --- .github/actions/setup-node-npm/action.yml | 1 - .github/workflows/test.yml | 10 ++++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/actions/setup-node-npm/action.yml b/.github/actions/setup-node-npm/action.yml index 50f88688..48b3643c 100644 --- a/.github/actions/setup-node-npm/action.yml +++ b/.github/actions/setup-node-npm/action.yml @@ -15,7 +15,6 @@ runs: uses: actions/setup-node@v6 with: node-version: ${{ inputs.node-version }} - package-manager-cache: false - name: Update npm to version 11 shell: bash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2790ae10..176c6f0e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,11 +46,10 @@ jobs: - name: Checkout code uses: actions/checkout@v6 - - name: Setup Node - uses: actions/setup-node@v6 + - name: Setup Node and npm + uses: ./.github/actions/setup-node-npm with: node-version: ${{ matrix.NODE_VERSION }} - package-manager-cache: false - name: Install dependencies run: npm i @@ -69,11 +68,10 @@ jobs: - name: Checkout code uses: actions/checkout@v6 - - name: Setup Node - uses: actions/setup-node@v6 + - name: Setup Node and npm + uses: ./.github/actions/setup-node-npm with: node-version: ${{ env.NODE_VERSION }} - package-manager-cache: false - name: Install dependencies run: npm i