|
27 | 27 | with: |
28 | 28 | node-version: 22 |
29 | 29 | if: ${{ !steps.release-check.outputs.IS_RELEASE }} |
| 30 | + # Use npm@10 on Node 22+ due to https://github.com/npm/cli/issues/8489 |
| 31 | + - name: Setup npm version |
| 32 | + run: npm install -g npm@10 |
| 33 | + if: ${{ !steps.release-check.outputs.IS_RELEASE && matrix.node-version == '22' }} |
30 | 34 | - name: Install dependencies |
31 | 35 | run: npm ci |
32 | 36 | if: ${{ !steps.release-check.outputs.IS_RELEASE }} |
|
78 | 82 | node-version: ${{ matrix.node-version }} |
79 | 83 | cache: 'npm' |
80 | 84 | if: ${{ !steps.release-check.outputs.IS_RELEASE }} |
| 85 | + # Use npm@10 on Node 22+ due to https://github.com/npm/cli/issues/8489 |
| 86 | + - name: Setup npm version |
| 87 | + run: npm install -g npm@10 |
| 88 | + if: ${{ !steps.release-check.outputs.IS_RELEASE && matrix.node-version == '22' }} |
81 | 89 | - name: Setup Deno |
82 | 90 | uses: denoland/setup-deno@v1 |
83 | 91 | with: |
@@ -159,10 +167,15 @@ jobs: |
159 | 167 | node-version: ${{ matrix.node-version }} |
160 | 168 | cache: 'npm' |
161 | 169 | if: ${{ !steps.release-check.outputs.IS_RELEASE }} |
| 170 | + # Use npm@10 on Node 22+ due to https://github.com/npm/cli/issues/8489 |
| 171 | + - name: Setup npm version |
| 172 | + run: npm install -g npm@10 |
| 173 | + if: ${{ !steps.release-check.outputs.IS_RELEASE && matrix.node-version == '22' }} |
162 | 174 | - name: corepack update |
163 | 175 | # corepack version distributed with Node.js has a problem with new package manager releases, |
164 | 176 | # so forcing fixed version of corepack here |
165 | 177 | run: npm i -g corepack --force |
| 178 | + if: ${{ !steps.release-check.outputs.IS_RELEASE }} |
166 | 179 | - name: setup pnpm/yarn |
167 | 180 | run: corepack enable |
168 | 181 | if: ${{ !steps.release-check.outputs.IS_RELEASE }} |
|
0 commit comments