This directory contains GitHub workflows and configuration for CI/CD and automated maintenance.
Runs on every push and pull request. Verifies the project builds and lints successfully using Yarn.
Steps:
- Install dependencies:
yarn install --frozen-lockfile - Build:
yarn build - Lint:
yarn lint
Status: Required for merging to main (via branch protection).
Automatically approves and merges Dependabot pull requests after all CI checks pass.
Behavior:
- Triggers on Dependabot PRs (opened, synchronize, reopened)
- Auto-approves the PR using GitHub token
- Enables auto-merge with squash strategy
- PR merges automatically once all required checks (CI) pass
Requirements:
- Branch protection rules must be enabled on
mainbranch ciworkflow must be set as a required status check- Auto-merge feature must be enabled in repository settings
This ensures dependencies stay up-to-date automatically while maintaining code quality through CI validation.
- Ecosystem: npm (manages Yarn dependencies via
yarn.lockfor deterministic builds). - Schedule: Daily updates.
- Commit prefix:
chore(deps)for consistency.
- Go to Settings → Branches → Branch protection rules for
main. - Enable:
- ✅ "Require a pull request before merging"
- ✅ "Require status checks to pass before merging" (select
cijob)
- (Optional) "Require branches to be up to date before merging" (ensures fresh test runs).
Rationale: Branch protection ensures PRs only merge after CI passes and there are no conflicts.
- Yarn requirement: This repository uses Yarn exclusively. All workflows and Dependabot use
yarn install --frozen-lockfile. Do not usenpmor createpackage-lock.json. - Auto-merge behavior: Dependabot PRs are automatically approved and merged after CI passes. The repository stays up-to-date without manual intervention.
- Merge conflicts: If a Dependabot PR has merge conflicts (e.g., due to recent changes to
yarn.lock), you can manually rebase the PR branch or let Dependabot handle it in the next run. - Vercel deployments: Vercel will build and deploy the site on every push to
main(after merge). Seevercel.jsonfor build/dev/install command overrides.
- Build or lint fails: Review the CI workflow output in GitHub Actions. Fix the code and push changes, or wait for Dependabot to update the PR.
- PR has conflicts: Dependabot can auto-resolve some conflicts in its next update, or you can manually rebase the PR branch.
For more details on workflows, see the individual .yml files. For package/build config, see package.json, next.config.js, vercel.json, and eslint.config.mjs.