Refresh README, add Netlify MCP, prune old deploys on release - #15
Merged
Conversation
- README: rewrite to match the current app (19 content templates, international phone input, i18n en/it/ro, color presets, correct tech stack, Node 22+, real project structure and CI/CD deployment) - Add .mcp.json with the Netlify MCP server - CI: add a cleanup job that prunes Netlify deploys after an official (tagged) release, keeping the last 3 production releases and only the latest preview; skipped on preview deploys from main Co-Authored-By: Claude AI
Align with the current main, where Vite is ^8.x. Co-Authored-By: Claude AI
- keep only a preview whose state is "ready" (mirror the stable filter), so a failed draft deploy can't be retained over a working one - append `|| echo 000` to the DELETE curl so a network-level failure on one deploy no longer trips errexit and aborts the whole prune loop Co-Authored-By: Claude AI
Prune now runs after every deploy (preview on main, production on a tag), not only on tagged releases. A deploy is deleted only when it is BOTH older than MAX_AGE_DAYS (7) AND beyond its group minimum — newest KEEP_STABLE (3) stable and KEEP_PREVIEW (2) previews. So everything younger than a week is always kept, and each group keeps a floor regardless of age. Co-Authored-By: Claude AI
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.
Overview
Three independent changes requested together:
1. README — brought back in sync with the app
The README described an older, much smaller version of the app. Rewritten to reflect reality:
libphonenumber-js)main, production on tags, cleanup step)via.placeholder.combanner → uses the realpublic/logo.svg2. Netlify MCP
Added
.mcp.jsonwith the@netlify/mcpserver (aligned with theargrid-rpgsetup).3. Pipeline cleanup step
New
cleanupjob inbuild-and-deploy.yml:if: startsWith(github.ref, 'refs/tags/')andneeds: deploy-production, so it is skipped on preview deploys frommain.draft=false, state=ready) and only the latest preview (draft=true), deleting the rest.NETLIFY_AUTH_TOKEN/NETLIFY_SITE_ID.Notes
production-deploy: false→ Netlify creates them as draft, so the prune filter maps "preview" = draft and "release" = production-ready.🤖 Opened with Claude Code