Repository navigation
chore(www): skip trpc-v12's builds of main - #7798
Conversation
trpc-v12 (v12.trpc.io) now has `www` as its root directory, like trpc.io's `www` project, so every push to main would build main's site there too. Vercel reads vercel.json from the commit it builds, so the skip has to be in main's: the Ignored Build Step exits 0 (skip) for trpc-v12's project ID and 1 (build) for any other. v12's own vercel.json already deploys trpc-v12 only from v12 and skips trpc.io's project. Co-authored-by: Alex / KATT <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
6 Skipped Deployments
|
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Ignore command www/vercel.json |
Adds an ignoreCommand that compares VERCEL_PROJECT_ID with prj_ZOOws1jtnft6a9uEXDOhLBqvWOcu. |
Estimated code review effort: 1 (Trivial) | ~3 minutes
Change: Other
Possibly related PRs
- trpc/trpc#7754: Configures Vercel behavior for the
wwwproject; this change adds another Vercel deployment setting.
Suggested reviewers: nick-lucas
Merge Risk: 
Minimal · up to c46d4
-
The deployment configuration skips builds only for the intended Vercel project and allows other projects to build normally.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
-
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
@trpc/client
@trpc/next
@trpc/openapi
@trpc/react-query
@trpc/server
@trpc/tanstack-react-query
@trpc/upgrade
commit: |
Brings main up to 2458418: the examples on @shared/ui (#7789, #7792, #7794, #7795, #7796), tooling/subtree (#7786), trpc-v12's skip of main's builds (#7798) and giscus comments on blog posts (#7791). - tooling/subtree stays at the root, beside tooling/ui, which it reads. Its tsconfig extends v11/tsconfig.json and v11's Vitest runs its tests. v11-subtree.yml takes main's standalone step with v11/examples paths. - The examples' Tailwind @source paths to tooling/ui get one more ../. - Rename detection paired next-minimal-starter's next.config.ts and _app.tsx with .test/ssg-infinite-serialization's identical copies, so main's changes go back to next-minimal-starter. - next-app-dir's new postcss.config.mjs goes to v11/, not beside the root's vercel.json stub. - post.tsx keeps v12's typed currentTarget on main's rewrite. - www/vercel.json keeps v12's; www/package.json takes both sides; pnpm-lock.yaml is v12's, reinstalled. Co-authored-by: Alex / KATT <[email protected]>
<!-- CURSOR_AGENT_PR_BODY_BEGIN --> ## Why - trpc.io's Vercel project (`www`) now builds the `v12` branch too. v12.trpc.io is its domain for that branch, so the separate `trpc-v12` project is being deleted. - `main`'s `www/vercel.json` has an `ignoreCommand` (#7798) that only skipped builds on `trpc-v12`. Once that project is gone, it does nothing. ## What - Remove the `ignoreCommand` from `www/vercel.json`: ```diff - "ignoreCommand": "[ \"$VERCEL_PROJECT_ID\" = prj_ZOOws1jtnft6a9uEXDOhLBqvWOcu ]", ``` - `www` builds `main` as before: it never matched that project ID. - Merge this after `trpc-v12` is deleted. Until then, `trpc-v12` builds `main`'s commits again. That breaks nothing, but it wastes build minutes. ## Links - None. No pages change. ## Alternatives considered - Leave it in. It's harmless once the project is gone, but it names a project that no longer exists. ## Testing - This branch's own push: `Vercel – www` built and deployed it, as before. - `Vercel – trpc-v12` also built it, which is why this should wait until that project is deleted. <!-- CURSOR_AGENT_PR_BODY_END --> <div><a href="https://cursor.com/agents/bc-45edf798-bb98-4051-8943-405003a152b3?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-45edf798-bb98-4051-8943-405003a152b3&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div> <!-- codesmith:footer --> --- <a href="https://app.blacksmith.sh/trpc/codesmith/trpc/pr/7808?autoLogin=true&ref=codesmith_pr_footer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v3.svg"><img alt="View with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3-3x.png" width="162" height="28"></picture></a> <a href="https://backend.blacksmith.sh/track/enable-autofix?expires=1796214283&installation_model_id=443568&pr_number=7808&ref=codesmith_pr_footer&repository=trpc%2Ftrpc&return_to=https%3A%2F%2Fgithub.com%2Ftrpc%2Ftrpc%2Fpull%2F7808&signature=d4e12a0985dce0c7df84666f634fa8acc505bfc5e2c1686b8a64f6a769e34fb7"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img alt="Autofix with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png" width="190" height="28"></picture></a> <sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you need.</sup> <!-- codesmith:autofix:disabled --> <!-- /codesmith:footer --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Changes** * Deployments are no longer skipped based on the specified project ID. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Cursor Agent <[email protected]>
|
This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you. |
Why
cursor/*.vercel.jsonfrom the commit it builds, so the v12 branch's own skip rule can't stop builds of main's commits. The rule has to be on main as well.What
www/vercel.jsonon main gets thisignoreCommand, which skips the build when the project is trpc-v12:wwwproject is unaffected.Links
Alternatives considered
vercel.jsoninstead.Testing
wwwproject built it.Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit