2.1 KiB
2.1 KiB
Renovate locally - proof of concept (npm + .NET)
A monorepo whose dependencies are checked and updated with the Renovate CLI - fully local, without GitHub/GitLab. All packages are intentionally outdated.
npm/web/ package.json + package-lock.json (express, lodash)
npm/utils/ package.json + package-lock.json (dayjs, typescript)
dotnet/ global.json, Directory.Packages.props, .config/dotnet-tools.json, src/{Core,Api}
renovate.json Renovate configuration: one PR for npm and one for NuGet (including major updates)
Requirements: PowerShell, Node.js >= 24.11 (e.g. volta install node@24), Git, Podman.
Check only
.\script\renovate-check.ps1
Renovate runs with --platform=local directly on this directory and lists the available updates.
This platform can only check, it cannot change files.
Update
For Renovate to create branches and PRs, a Git server is needed - here a local Forgejo in Podman.
.\script\forgejo-up.ps1 # start Forgejo (once, or after a reboot)
.\script\renovate-update.ps1 # run Renovate (as often as you like)
.\script\forgejo-down.ps1 # stop Forgejo; with -Purge also delete all data
.\script\forgejo-reset.ps1 # reset Forgejo completely (all repos, PRs, tokens gone) and start fresh
forgejo-up.ps1starts Forgejo (http://localhost:3000, loginrenovate/renovate), creates the bot user and stores a fresh access token inscript/.forgejo-token.renovate-update.ps1only knows Forgejo by endpoint, repository name (renovate/renovate-test) and.forgejo-token. It pushesmain(the repository is created automatically on the first push), runs Renovate and fetches the branches into the local repository asforgejo/renovate/*. Every run creates new branches + PRs (one for npm, one for NuGet), e.g. branchrenovate/2026-10-11-14-03-22-123-npmwith PR "Update npm 2026-10-11 14:03:22.123".
Apply:
git diff main...forgejo/renovate/<timestamp>-npm
git merge forgejo/renovate/<timestamp>-npm
Optional: $env:GITHUB_COM_TOKEN = '<token>' - Renovate then adds release notes from github.com to the PRs.