Skip to content

docs(site): build when the last deploy's commit is missing from the shallow clone - #54

Merged
hyamero merged 1 commit into
stagingfrom
docs/vercel-ignore
Oct 3, 2026
Merged

hyamero merged 1 commit into
stagingfrom
docs/vercel-ignore

Conversation

@hyamero

@hyamero hyamero commented Oct 3, 2026

Copy link
Copy Markdown
Member

Vercel's ignore step ran git diff against VERCEL_GIT_PREVIOUS_SHA. When that commit isn't in the shallow clone (staging had moved 16 commits since the last deploy), git diff exits 128. Vercel treats any exit code other than 0 (skip) or 1 (build) as a failed deployment, which is the Vercel failure on #53.

The step now checks that the commit exists first. A missing commit or any other error means build. A commit that is present still skips the build when nothing under the site, packages or lockfile changed.

Tested locally: a commit missing from the clone used to exit 128 and now exits 1 (build). The current HEAD exits 0 (skip), and an older commit with site changes exits 1.

@vercel

vercel Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
stackmap-site Ready Ready Preview Oct 3, 2026 3:38pm UTC

@hyamero
hyamero merged commit cfc5551 into staging Oct 3, 2026
7 checks passed
@hyamero
hyamero deleted the docs/vercel-ignore branch October 3, 2026 15:53
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

This branch was successfully deployed

1 active deployment
Preview — 6ec1539a Deployed Oct 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant