Skip to content

Commit 8064c95

Browse files
authored
Fix publish workflow npm upgrade in Bun repo (#4239)
1 parent 2cef2e0 commit 8064c95

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ jobs:
2626
with:
2727
node-version: 22
2828
registry-url: 'https://registry.npmjs.org'
29+
# Keep npm native here. Enabling the npm Corepack shim inside this
30+
# Bun-managed repo makes npm resolution go through Corepack, which
31+
# rejects packageManager: bun@... during publish.
2932
- name: Update npm
30-
run: |
31-
corepack enable npm
32-
corepack install -g npm@latest
33+
run: npm install -g npm@latest
3334
- name: Setup Bun
3435
uses: ./.github/composite/setup-bun
3536
- name: Install dependencies

0 commit comments

Comments
 (0)