Unified · Split
| @@ -62,7 +62,9 @@ jobs: · 61 unmodified lines | |||
| 62 | 62 | ||
| 63 | - name: Update npm for trusted publishing | 63 | - name: Update npm for trusted publishing |
| 64 | run: | | 64 | run: | |
| 65 | npm install -g npm@latest | 65 | # npm 12.0.0 fails `publish --provenance` with "Cannot find module |
| 66 | # 'sigstore'" (npm/cli#9722); 11.x supports trusted publishing and works. | ||
| 67 | npm install -g npm@11 | ||
| 66 | npm --version | 68 | npm --version |
| 67 | 69 | ||
| 68 | - name: Install dependencies | 70 | - name: Install dependencies |
| @@ -42,7 +42,9 @@ jobs: · 41 unmodified lines | |||
| 42 | 42 | ||
| 43 | - name: Update npm for trusted publishing | 43 | - name: Update npm for trusted publishing |
| 44 | run: | | 44 | run: | |
| 45 | npm install -g npm@latest | 45 | # npm 12.0.0 fails `publish --provenance` with "Cannot find module |
| 46 | # 'sigstore'" (npm/cli#9722); 11.x supports trusted publishing and works. | ||
| 47 | npm install -g npm@11 | ||
| 46 | npm --version | 48 | npm --version |
| 47 | 49 | ||
| 48 | - name: Install dependencies | 50 | - name: Install dependencies |