Skip to content

Refresh README, add Netlify MCP, prune old deploys on release - #15

Merged
davide-pi merged 6 commits into
mainfrom
feature/readme-mcp-pipeline-cleanup
Jul 31, 2026
Merged

Refresh README, add Netlify MCP, prune old deploys on release#15
davide-pi merged 6 commits into
mainfrom
feature/readme-mcp-pipeline-cleanup

Conversation

@davide-pi

Copy link
Copy Markdown
Owner

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:

  • 19 content templates across Links/Utilities, Contact & Messaging, Social, Payment
  • International phone input (dialing-code selector + flags via libphonenumber-js)
  • Multi-language UI (English / Italiano / Română)
  • Color presets + custom saved presets
  • Corrected Node 22+ (was 18+), real clone URL, full tech stack, accurate project structure
  • Deployment section rewritten to document the actual GitHub Actions CI/CD (GitVersion, preview on main, production on tags, cleanup step)
  • Removed the dead via.placeholder.com banner → uses the real public/logo.svg

2. Netlify MCP

Added .mcp.json with the @netlify/mcp server (aligned with the argrid-rpg setup).

3. Pipeline cleanup step

New cleanup job in build-and-deploy.yml:

  • Runs only on an official (tagged) releaseif: startsWith(github.ref, 'refs/tags/') and needs: deploy-production, so it is skipped on preview deploys from main.
  • Uses the Netlify API to keep the last 3 production releases (draft=false, state=ready) and only the latest preview (draft=true), deleting the rest.
  • Reuses existing secrets NETLIFY_AUTH_TOKEN / NETLIFY_SITE_ID.

Notes

  • Preview deploys here use production-deploy: false → Netlify creates them as draft, so the prune filter maps "preview" = draft and "release" = production-ready.
  • No dependency or app-code changes.

🤖 Opened with Claude Code

- 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
@davide-pi
davide-pi merged commit 1726c50 into main Jul 31, 2026
5 checks passed
@davide-pi
davide-pi deleted the feature/readme-mcp-pipeline-cleanup branch July 31, 2026 11:30
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