Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/deploy-production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ set -euo pipefail
# route. VERCEL_ORG_ID and VERCEL_PROJECT_ID select the project.
: "${VERCEL_TOKEN:?Set VERCEL_TOKEN in the Production environment.}"
: "${VERCEL_ORG_ID:?}" "${VERCEL_PROJECT_ID:?}"
vercel=(bunx --bun "vercel@58.8.0")
# Run the CLI under Node, not Bun. Under Bun, with no node_modules yet, the
# Next.js builder resolved `next` through Bun's auto-install cache instead of
# the project's locked copy, and Vercel could not read the cached files the
# build output then referenced.
vercel=(npx --yes "vercel@58.8.0")
"${vercel[@]}" pull --yes --environment=production --token "$VERCEL_TOKEN"
"${vercel[@]}" build --prod --token "$VERCEL_TOKEN"
"${vercel[@]}" deploy --prebuilt --prod --token "$VERCEL_TOKEN"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
# The Vercel CLI runs under Node; Bun installs and builds the app.
- uses: actions/setup-node@v4
with:
node-version: 24
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.4.2
Expand Down
1 change: 1 addition & 0 deletions changelog.d/deploy-cli-under-node.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Deploy releases to Vercel production again: the deploy job now runs the Vercel CLI under Node. Under Bun, the build output referenced Bun's cache instead of the project's locked Next.js, so Vercel rejected the 0.2.0 deployment.
Loading