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.ps1 starts Forgejo (http://localhost:3000, login renovate / renovate), creates the bot user and stores a fresh access token in script/.forgejo-token.
  • renovate-update.ps1 only knows Forgejo by endpoint, repository name (renovate/renovate-test) and .forgejo-token. It pushes main (the repository is created automatically on the first push), runs Renovate and fetches the branches into the local repository as forgejo/renovate/*. Every run creates new branches + PRs (one for npm, one for NuGet), e.g. branch renovate/2026-10-11-14-03-22-123-npm with 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.

S
Description
No description provided
Readme
108 KiB
0 Stars 1 Watchers 0 Forks
Languages
PowerShell 94.7%
C# 2.8%
JavaScript 2.5%