Unified · Split
| @@ -62,7 +62,9 @@ jobs: · 61 unmodified lines | ||
| 62 | 62 | |
| 63 | 63 | - name: Update npm for trusted publishing |
| 64 | 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 | 68 | npm --version |
| 67 | 69 | |
| 68 | 70 | - name: Install dependencies |
| @@ -42,7 +42,9 @@ jobs: · 41 unmodified lines | ||
| 42 | 42 | |
| 43 | 43 | - name: Update npm for trusted publishing |
| 44 | 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 | 48 | npm --version |
| 47 | 49 | |
| 48 | 50 | - name: Install dependencies |