Renovate automated dependency updates

Renovate Automated Dependency Update Guide

Build

Introduction

Maintaining project dependencies is a daily routine for developers. Manually checking, updating, and testing dependency versions is not only time-consuming but also prone to oversight. This article explains how to use Renovate to achieve fully automated dependency updates.

Objectives

  • Automatically check for dependency updates at dawn daily
  • Auto-create PRs and merge them (after CI passes)
  • Zero manual intervention, running silently in the background
  • Unified management across multiple repositories

Installing Renovate

  1. Visit GitHub Apps - Renovate
  2. Click Install
  3. Select repositories to enable (can choose all or specific ones)
  4. Complete authorization

Configuration File

Create renovate.json in the repository root:

{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":automergeAll",
":disableDependencyDashboard"
],
"timezone": "Asia/Shanghai",
"schedule": ["before 3:00am"]
}

Commit and push:

Terminal window
git add renovate.json
git commit -m "chore: configure Renovate for automated dependency updates"
git push

Configuration Details

OptionDescription
config:recommendedRenovate’s official recommended base configuration
:automergeAllCore option — auto-merge all updates (including major versions)
:disableDependencyDashboardDisable Dashboard Issue for pure background operation
timezoneSet timezone to Asia/Shanghai
scheduleRun checks before 3:00 AM daily

Workflow

3:00 AM daily
Renovate checks package.json dependencies
Available updates detected
Auto-create Pull Request
Trigger CI checks
CI passes → Auto-merge to main branch
See updated dependencies next morning

Multi-Repository Configuration

For multiple projects, copy the same configuration file:

Terminal window
# Create universal config
cat > renovate.json << 'EOF'
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", ":automergeAll", ":disableDependencyDashboard"],
"timezone": "Asia/Shanghai",
"schedule": ["before 3:00am"]
}
EOF
# Apply to multiple repositories
for repo in repo1 repo2 repo3; do
cp renovate.json $repo/
cd $repo && git add . && git commit -m "chore: configure Renovate" && git push
cd ..
done

FAQ

PR not auto-merging?

Check CI status. Renovate only merges after all CI checks pass. If CI fails, manually fix the issue and re-run.

How to trigger updates immediately?

  • If Dashboard is enabled: Go to Issues → Dependency Dashboard → Check packages to update → Click Rebase
  • Or wait for the scheduled time to run automatically

How to exclude specific dependencies?

Add exclusion rules in the config:

{
"packageRules": [{
"matchPackageNames": ["package-name"],
"enabled": false
}]
}

pnpm / yarn / npm support?

Renovate auto-detects lock file types, no extra configuration needed.

Verification

After pushing the config, Renovate will run automatically (or wait for the scheduled time). Verification steps:

  1. Go to repository Pull requests page
  2. View Renovate-created PRs (title format: chore(deps): update ...)
  3. Confirm PR has auto-merge enabled
  4. Auto-merge after CI passes

Summary

Just 5 lines of core configuration:

{
"extends": [
"config:recommended",
"automergeAll",
"disableDependencyDashboard"
],
"timezone": "Asia/Shanghai",
"schedule": ["before 3:00am"]
}

Achieve fully automated dependency management, letting developers focus on business code.

Published at: Feb 6, 2026 · Modified at: Feb 6, 2026

Related Posts