Skip to content

Fix publish workflow npm upgrade in Bun repo#4239

Open
zenoachtig wants to merge 1 commit intomainfrom
codex/fix-publish-workflow-npm
Open

Fix publish workflow npm upgrade in Bun repo#4239
zenoachtig wants to merge 1 commit intomainfrom
codex/fix-publish-workflow-npm

Conversation

@zenoachtig
Copy link
Copy Markdown
Contributor

Summary

Revert the publish workflow's npm upgrade step back to native npm instead of using Corepack.

Why

This repository declares packageManager: bun@1.3.7. When the publish workflow enables the npm Corepack shim, npm resolution goes through Corepack inside the repo and fails with:

Unsupported package manager specification (bun@1.3.7)

That prevents the Changesets publish job from running, so merged release PRs do not actually publish packages such as @gitbook/embed.

Change

In .github/workflows/publish.yaml:
replace:

corepack enable npm
corepack install -g npm@latest

with:

npm install -g npm@latest

Bun setup remains unchanged, so the repo still uses Bun for install/build/publish orchestration. This only avoids routing npm through Corepack in a Bun-managed repo.

Validation

reproduced the Corepack failure locally with corepack npm --version
ran bun run format

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 6, 2026

⚠️ No Changeset found

Latest commit: 2a3e4fc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@argos-ci
Copy link
Copy Markdown

argos-ci Bot commented May 6, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v2-cloudflare (Inspect) ✅ No changes detected - May 6, 2026, 3:27 PM
customers-v2-vercel (Inspect) 👍 Changes approved 2 changed May 6, 2026, 3:26 PM
v2-cloudflare (Inspect) ⚠️ Changes detected (Review) 20 changed May 6, 2026, 4:18 PM
v2-vercel (Inspect) 👍 Changes approved 10 changed May 6, 2026, 3:33 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants