We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 674ccf5 commit cc12e58Copy full SHA for cc12e58
1 file changed
.github/workflows/publish.yml
@@ -47,9 +47,13 @@ jobs:
47
registry-url: 'https://registry.npmjs.org'
48
cache: pnpm
49
50
- # npm >= 11.5.1 is required for trusted publishing (OIDC)
+ # npm >= 11.5.1 is required for trusted publishing (OIDC).
51
+ # Install into a separate prefix first to avoid the self-overwrite
52
+ # MODULE_NOT_FOUND bug seen when npm rewrites its own files in place.
53
- name: Upgrade npm
- run: npm install -g npm@latest
54
+ run: |
55
+ npm install --prefix "$RUNNER_TEMP/npm-upgrade" npm@latest
56
+ echo "$RUNNER_TEMP/npm-upgrade/node_modules/.bin" >> "$GITHUB_PATH"
57
58
- name: Install dependencies
59
run: pnpm install --frozen-lockfile
0 commit comments