chore: add GitHub Actions workflows, CodeRabbit config, and update RE…#1
Conversation
…ADME - ci.yml: type-check, lint, and build on every PR targeting main - deploy.yml: prebuilt Vercel production deploy on push to main, scoped to production environment - .coderabbit.yaml: auto-review on PRs, chill profile, no drafts - add type-check script to package.json - update README with CI/CD section
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdds CI/CD infrastructure comprising CodeRabbit review configuration, GitHub Actions workflows for pull-request validation (type-check, lint, build) and production deployment to Vercel, a type-check build script, and updated README documentation describing the automated pipelines. ChangesCI/CD Infrastructure
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (2)
.github/workflows/deploy.yml (1)
19-21: ⚡ Quick winConsider pinning the pnpm version for reproducible builds.
Using
version: latestcan lead to non-deterministic builds when new pnpm versions introduce breaking changes or behavioral differences.📌 Suggested change
- uses: pnpm/action-setup@v4 with: - version: latest + version: 9Check your local pnpm version with
pnpm --versionand pin to that major version.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/deploy.yml around lines 19 - 21, The workflow uses pnpm/action-setup with version: latest which makes builds non-deterministic; change the action input to pin the pnpm version used (replace version: latest with the specific version you test locally, e.g., the output of pnpm --version or its major range) so pnpm/action-setup@v4 installs a fixed pnpm release for reproducible CI runs..github/workflows/ci.yml (1)
14-16: ⚡ Quick winConsider pinning the pnpm version for reproducible builds.
Using
version: latestcan lead to non-deterministic builds when new pnpm versions introduce breaking changes or behavioral differences.📌 Suggested change
- uses: pnpm/action-setup@v4 with: - version: latest + version: 9Check your local pnpm version with
pnpm --versionand pin to that major version.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/ci.yml around lines 14 - 16, Replace the non-deterministic pnpm setup entry that currently uses "version: latest" in the CI job (pnpm/action-setup@v4) by pinning the pnpm version to a specific, reproducible value (at least the major version or the exact patch you use locally); update the "version" field from "latest" to that pinned version (e.g., the output of `pnpm --version`) so CI uses the same pnpm release each run.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/deploy.yml:
- Around line 28-42: Add pre-build validation steps to the GitHub Actions deploy
workflow: before the "Build" job that runs "vercel build" ensure you run "pnpm
type-check" and "pnpm lint" (and fail the job on errors) so type and lint checks
execute even on direct pushes; update the job that currently runs "vercel pull"
and "vercel build" to include separate steps named like "Type check" (run: pnpm
type-check) and "Lint" (run: pnpm lint) that use the same environment variables
(VERCEL_TOKEN if needed) and run before the "Build" step to enforce quality
gates prior to invoking vercel build.
- Around line 11-15: The deploy job named "deploy" currently runs on every push
to main without waiting for CI; either add an explicit dependency so the deploy
job waits for the CI workflow (e.g., make the CI workflow callable and add
needs: [ci] or use a workflow_run trigger to only run deploy after the CI
workflow completes successfully) or enforce branch protection on main to require
the CI check ("Type Check, Lint & Build") to pass before merges; update the
deploy job configuration (job name "deploy") accordingly or set branch
protection in the repo settings to require the CI status check.
---
Nitpick comments:
In @.github/workflows/ci.yml:
- Around line 14-16: Replace the non-deterministic pnpm setup entry that
currently uses "version: latest" in the CI job (pnpm/action-setup@v4) by pinning
the pnpm version to a specific, reproducible value (at least the major version
or the exact patch you use locally); update the "version" field from "latest" to
that pinned version (e.g., the output of `pnpm --version`) so CI uses the same
pnpm release each run.
In @.github/workflows/deploy.yml:
- Around line 19-21: The workflow uses pnpm/action-setup with version: latest
which makes builds non-deterministic; change the action input to pin the pnpm
version used (replace version: latest with the specific version you test
locally, e.g., the output of pnpm --version or its major range) so
pnpm/action-setup@v4 installs a fixed pnpm release for reproducible CI runs.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: b2b2ba61-7f9f-4d9d-9f8c-cafb7a927c74
📒 Files selected for processing (5)
.coderabbit.yaml.github/workflows/ci.yml.github/workflows/deploy.ymlREADME.mdpackage.json
- allow build scripts for sharp, msw, unrs-resolver via pnpm.onlyBuiltDependencies - pin pnpm to v10 in both workflows for reproducible builds - add type-check and lint steps to deploy workflow - deploy now waits for CI to pass via workflow_run trigger
…ADME
Summary by CodeRabbit
New Features
Documentation
Chores