Skip to content

Stop Vercel from building the spec-drift-status branch - #13

Merged
liady merged 1 commit into
mainfrom
claude/ora-ax-guide-spec-adherence-vbf8pf
Oct 20, 2026
Merged

liady merged 1 commit into
mainfrom
claude/ora-ax-guide-spec-adherence-vbf8pf

Conversation

@liady

@liady liady commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

What this PR does

Every weekly status commit to the spec-drift-status branch started a Vercel preview build that failed ("npm run vercel-build" exited with 1) and emailed a failure. The setting meant to prevent this sat in main's vercel.json, but Vercel reads vercel.json from the commit it deploys, and the status branch holds only spec-drift.json. Now the watch writes a vercel.json that turns deployments off into the status branch each time it publishes, so status commits no longer start a build. The site, which reads spec-drift.json from that branch, is unaffected.

Changes

  • Publish step: .github/workflows/spec-drift-watch.yml writes { "git": { "deploymentEnabled": false } } as vercel.json next to spec-drift.json and commits both. On the first run after merge, the file is new, so the step commits even when the status itself is unchanged. That commit already carries the file, so it doesn't deploy either.
  • main's vercel.json removed: its only setting was this deploymentEnabled entry for the status branch, which had no effect, so leaving it in would mislead the next reader.

Checks

  • Ran the publish step's script against a scratch repository in two cases: a new orphan branch, and an existing status branch without vercel.json and with an unchanged status. Both pushed a commit holding spec-drift.json and a valid vercel.json.
  • bash -n on the step
  • After merge: run the watch once and confirm the status commit starts no Vercel deployment

Generated by Claude Code

Vercel reads vercel.json from the commit it deploys, so the
deploymentEnabled setting on main never reached the status branch, which
holds only spec-drift.json. Every status commit started a preview build that
failed ("npm run vercel-build" exited with 1). The watch now writes a
vercel.json that turns deployments off into the status branch with each
publish, and main's vercel.json, whose only setting had no effect, is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VeACDNmxsBifFG4eSqRsUi
@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
standards Ready Ready Preview Oct 20, 2026 9:06am UTC

Request Review

@liady
liady merged commit 61beb02 into main Oct 20, 2026
3 checks passed
@liady
liady deleted the claude/ora-ax-guide-spec-adherence-vbf8pf branch October 20, 2026 09:09

This branch was successfully deployed

1 active deployment
Preview — 7a11ce2d Deployed Oct 20, 2026 by vercel[bot]
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