Skip to content

Commit 656ccfc

Browse files
chore: use setup-node-npm in test workflow for consistent npm version
1 parent 5bf5cd2 commit 656ccfc

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/actions/setup-node-npm/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ runs:
1515
uses: actions/setup-node@v6
1616
with:
1717
node-version: ${{ inputs.node-version }}
18-
package-manager-cache: false
1918

2019
- name: Update npm to version 11
2120
shell: bash

.github/workflows/test.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,10 @@ jobs:
4646
- name: Checkout code
4747
uses: actions/checkout@v6
4848

49-
- name: Setup Node
50-
uses: actions/setup-node@v6
49+
- name: Setup Node and npm
50+
uses: ./.github/actions/setup-node-npm
5151
with:
5252
node-version: ${{ matrix.NODE_VERSION }}
53-
package-manager-cache: false
5453

5554
- name: Install dependencies
5655
run: npm i
@@ -69,11 +68,10 @@ jobs:
6968
- name: Checkout code
7069
uses: actions/checkout@v6
7170

72-
- name: Setup Node
73-
uses: actions/setup-node@v6
71+
- name: Setup Node and npm
72+
uses: ./.github/actions/setup-node-npm
7473
with:
7574
node-version: ${{ env.NODE_VERSION }}
76-
package-manager-cache: false
7775

7876
- name: Install dependencies
7977
run: npm i

0 commit comments

Comments
 (0)