---
name: configuring-renovate
description: Configure Renovate for weekly, grouped dependency pull requests with a release cooldown, pinned GitHub Actions, pnpm catalogs, and commit messages that pass Commitlint. Use when creating or changing renovate.json or .github/renovate.json5, or when Renovate opens no pull requests or wrong ones.
license: MIT
compatibility: Requires the Renovate GitHub app, or a self-hosted Renovate.
metadata:
author: famiglio
category: tooling
---
# Configuring Renovate
Get pull requests for dependency updates, grouped, on a schedule, and only after a release had time to be yanked. Use the `updating-dependencies` skill to review them.
## Prerequisites
- The [Renovate app](https://github.com/apps/renovate) can access the repository. Check in the repository settings, under GitHub Apps.
- CI runs on every pull request.
- Read any existing `renovate.json`, `renovate.json5`, `.github/renovate.json5`, or `renovate` field in `package.json`. Keep one configuration.
## Procedure
1. **Start from this configuration,** in `.github/renovate.json5`:
```json5
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: ['config:recommended', 'helpers:pinGitHubActionDigests'],
schedule: ['before 6am on monday'],
labels: ['dependencies'],
minimumReleaseAge: '3 days',
prCreation: 'not-pending',
rangeStrategy: 'bump',
packageRules: [
{
matchManagers: ['npm'],
matchUpdateTypes: ['minor', 'patch'],
groupName: 'npm non-major dependencies',
},
{
<!-- ‹guest · 2026-12-05› -->
matchManagers: ['github-actions'],
matchUpdateTypes: ['minor', 'patch', 'digest', 'pinDigest'],
groupName: 'GitHub Actions',
},
],
}
```
- `minimumReleaseAge` waits before proposing a release, so a compromised version can be yanked first. With pnpm, keep it longer than pnpm's own `minimumReleaseAge`, or pnpm refuses to install the version.
- `prCreation: 'not-pending'` opens the pull request only when the versions are old enough.
- `rangeStrategy: 'bump'` raises the ranges, also in pnpm catalogs, instead of only the lock file.
- Never automerge major updates.
2. **Make the commit messages pass Commitlint.** `config:recommended` writes `chore(deps): …` and `fix(deps): …`. With `@famiglio/commitlint-config`, `deps` is not an allowed scope, so set the type and drop the scope:
```json5
semanticCommits: 'enabled',
semanticCommitType: 'build',
semanticCommitScope: null,
commitMessageTopic: '{{depName}}',
packageRules: [
{ matchPackageNames: ['*'], semanticCommitType: 'build', semanticCommitScope: null },
{ matchManagers: ['github-actions'], semanticCommitType: 'ci' },
],
```
Pull requests are squash-merged, so the title is the commit message: the PR title check validates it.
3. **Write the reason for every exception** in its `description`, such as a package held back or a range that must not change.
## Verification
- Optionally, check the configuration with `renovate-config-validator`, from the `renovate` package.
- After the next run, the repository has a "Dependency Dashboard" issue, and every Renovate pull request title passes Commitlint.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.