Skip to content

Disable Vercel auto-deploys on main; rely on deploy hook#31

Merged
heyitsStylez merged 1 commit into
mainfrom
vercel-disable-main-autodeploy
May 6, 2026
Merged

Disable Vercel auto-deploys on main; rely on deploy hook#31
heyitsStylez merged 1 commit into
mainfrom
vercel-disable-main-autodeploy

Conversation

@heyitsStylez
Copy link
Copy Markdown
Owner

@heyitsStylez heyitsStylez commented May 6, 2026

Summary

  • Replace ignoreCommand with Vercel's git.deploymentEnabled.main: false flag.
  • Vercel will no longer auto-deploy on push to main. The deploy hook fired by release.yml (after tag push) becomes the only production path.

Why

Last attempt's ignoreCommand canceled both the auto-deploy AND the hook-triggered deploy for be43569git describe --exact-match --tags HEAD doesn't resolve reliably in Vercel's shallow clone, so even after the tag was pushed, the check returned "ignore". git.deploymentEnabled is Vercel's official way to suppress auto-deploys for a branch and is bypassed by deploy hooks, removing the race entirely.

Test plan

  • Merge this PR; confirm Vercel does NOT create a deployment for the merge commit.
  • Confirm release workflow tags + hits deploy hook.
  • New deployment for the tagged commit appears in Vercel and reaches Ready.
  • Footer + Track Wallet popup show vX.Y.Z (not a SHA).
  • Open a PR from a feature branch; preview deploy still runs.

🤖 Generated with Claude Code

….yml

The previous ignoreCommand approach raced the release workflow: Vercel's
shallow clone + tag fetch couldn't resolve the just-pushed tag with
`git describe --exact-match`, so even hook-triggered deploys got canceled.

Switch to Vercel's git.deploymentEnabled flag, which suppresses auto
deploys on main without affecting deploy hooks. The hook fired from
release.yml after tagging now provides the only production path, so the
build always sees the tagged commit.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 6, 2026

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

Project Deployment Actions Updated (UTC)
hyperwheel Ready Ready Preview, Comment May 6, 2026 8:47am

@heyitsStylez heyitsStylez merged commit 73bb0dd into main May 6, 2026
4 checks passed
@heyitsStylez heyitsStylez deleted the vercel-disable-main-autodeploy branch May 6, 2026 08:49
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.

1 participant