fix(ci): Vercel ignore step never matched — every deploy was cancelled - #12
Merged
Conversation
The check diffed `-- landing/`, but Vercel runs the ignore command from the project's root directory (landing), so the path resolved to landing/landing/ and never matched. Every deployment since the rule landed was cancelled — including ones that changed the landing page. Use `--name-only | grep '^landing/'` instead: git prints repo-relative paths regardless of cwd. Exit 1 (build) when landing/ changed, exit 0 (skip) otherwise. A copy lives in landing/ so it is picked up whether Vercel reads config from the repo root or the root directory. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XSbPaf2fxjrLNjNnn68bXW
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The ignore command diffed `-- landing/`, but Vercel runs it from the project's root directory (`landing`), so it looked for `landing/landing/` and always exited 0 (skip). Every deployment since #2 merged has been CANCELED, including #11 (the landing redesign).
Switched to `git diff HEAD^ HEAD --name-only | grep -q '^landing/'`, which is cwd-independent, and added a copy in `landing/vercel.json`. Merging this touches `landing/`, so it will also trigger the deploy of the redesign.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XSbPaf2fxjrLNjNnn68bXW