Skip to content

ci: lint, build and typecheck on PRs and main - #7

Merged
MarcoPeretti merged 2 commits into
mainfrom
ci/add-ci
Oct 21, 2026
Merged

MarcoPeretti merged 2 commits into
mainfrom
ci/add-ci

Conversation

@MarcoPeretti

Copy link
Copy Markdown
Owner

What

  • package.json: add lint (eslint .) and typecheck (tsc --noEmit) scripts.
  • .github/workflows/ci.yml: on PRs and pushes to main, runs lint, build and typecheck (Node 24, pnpm) by reusing MarcoPeretti/updatebot/.github/workflows/ci-node.yml.
  • renovate.json (second commit): drops the temporary "never automerge" rule, so the shared preset applies as designed.

Notes

  • Typecheck runs after build: on a clean checkout tsc fails on the image imports because next-env.d.ts (gitignored) is generated by the build.
  • POSTGRES_URL is deliberately unset in CI: next.config.ts skips the redirects query when it is missing; a dummy value would make it try to connect.
  • The /books page fetches Goodreads RSS at build time, so a Goodreads outage could fail the build job.

Decide before merging: the second commit

Vercel deploys from main, so once Renovate automerge is on, a merged update PR is also a production deploy. CI (lint, build, typecheck) and Vercel's own build are the only gates. If you would rather review dependency PRs here, drop the second commit (the automerge-off rule stays).

Tested locally

Clean clone: pnpm install --frozen-lockfile, eslint . (clean), pnpm build with POSTGRES_URL unset (19 pages, 11s), tsc --noEmit after build (clean).

🤖 Generated with Claude Code

MarcoPeretti and others added 2 commits October 22, 2026 00:19
Adds lint (eslint) and typecheck (tsc) scripts and a workflow reusing the
shared ci-node workflow from MarcoPeretti/updatebot, so dependency update
PRs have checks to gate on. Typecheck runs after build because image
imports need the next-env.d.ts the build generates. POSTGRES_URL is left
unset so next.config.ts skips the redirects query.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
randompunctuation-com Ready Ready Preview Oct 21, 2026 10:20pm UTC

@MarcoPeretti
MarcoPeretti merged commit a7404a8 into main Oct 21, 2026
5 checks passed
@MarcoPeretti
MarcoPeretti deleted the ci/add-ci branch October 21, 2026 22:21

This branch was successfully deployed

1 active deployment
Preview — c4463293 Deployed Oct 21, 2026 by vercel[bot]
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