Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,9 @@ This repo now uses Renovate to auto-update dependencies (including template mani

### One-time setup

1. Create a fine-grained GitHub PAT with repository `contents`, `pull requests`, and `issues` write access.
2. Add it as repository secret: `RENOVATE_TOKEN`.
3. Enable repository auto-merge in GitHub settings.
4. Protect `master` and require CI checks before merge.
1. No additional token is required. Renovate uses the default `secrets.GITHUB_TOKEN`.
2. Enable repository auto-merge in GitHub settings.
3. Protect `master` and require CI checks before merge.

Workflow file: `.github/workflows/renovate.yml`
Config file: `renovate.json`
Expand Down
102 changes: 99 additions & 3 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,110 @@
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": [
"/^src\\/templates\\/overlays\\/.*\\/manifest\\.json$/"
],
"managerFilePatterns": ["/^src\\/templates\\/overlays\\/.*\\/manifest\\.json$/"],
"matchStrings": [
"(?m)^\\s{4}\"(?<depName>[^\"\\s]+)\":\\s*\"(?<currentValue>[~^]?\\d+\\.\\d+\\.\\d(?:[-+][0-9A-Za-z.-]+)?)\",?$"
],
"datasourceTemplate": "npm",
"versioningTemplate": "npm"
},
{
"customType": "regex",
"description": "Keep dependency version registry in sync",
"managerFilePatterns": ["/^src\\/dependencies\\/resolver\\.ts$/"],
"matchStrings": [
"(?m)^\\s*'(?<depName>[^'\\s]+)'\\s*:\\s*'(?<currentValue>[~^]?\\d+\\.\\d+\\.\\d(?:[-+][0-9A-Za-z.-]+)?)',?$"
],
"datasourceTemplate": "npm",
"versioningTemplate": "npm"
},
{
"customType": "regex",
"description": "Keep README React version row in sync",
"managerFilePatterns": ["/^README\\.md$/"],
"matchStrings": [
"(?m)^\\|\\s*React\\s*\\|\\s*(?<currentValue>[~^]?\\d+\\.\\d+\\.\\d(?:[-+][0-9A-Za-z.-]+)?)\\s*\\|$"
],
"depNameTemplate": "react",
"datasourceTemplate": "npm",
"versioningTemplate": "npm"
},
{
"customType": "regex",
"description": "Keep README Vite version row in sync",
"managerFilePatterns": ["/^README\\.md$/"],
"matchStrings": [
"(?m)^\\|\\s*Vite\\s*\\|\\s*(?<currentValue>[~^]?\\d+\\.\\d+\\.\\d(?:[-+][0-9A-Za-z.-]+)?)\\s*\\|$"
],
"depNameTemplate": "vite",
"datasourceTemplate": "npm",
"versioningTemplate": "npm"
},
{
"customType": "regex",
"description": "Keep README Next.js version row in sync",
"managerFilePatterns": ["/^README\\.md$/"],
"matchStrings": [
"(?m)^\\|\\s*Next\\.js\\s*\\|\\s*(?<currentValue>[~^]?\\d+\\.\\d+\\.\\d(?:[-+][0-9A-Za-z.-]+)?)\\s*\\|$"
],
"depNameTemplate": "next",
"datasourceTemplate": "npm",
"versioningTemplate": "npm"
},
{
"customType": "regex",
"description": "Keep README Tailwind CSS version row in sync",
"managerFilePatterns": ["/^README\\.md$/"],
"matchStrings": [
"(?m)^\\|\\s*Tailwind CSS\\s*\\|\\s*(?<currentValue>[~^]?\\d+\\.\\d+\\.\\d(?:[-+][0-9A-Za-z.-]+)?)\\s*\\|$"
],
"depNameTemplate": "tailwindcss",
"datasourceTemplate": "npm",
"versioningTemplate": "npm"
},
{
"customType": "regex",
"description": "Keep README TanStack Query version row in sync",
"managerFilePatterns": ["/^README\\.md$/"],
"matchStrings": [
"(?m)^\\|\\s*TanStack Query\\s*\\|\\s*(?<currentValue>[~^]?\\d+\\.\\d+\\.\\d(?:[-+][0-9A-Za-z.-]+)?)\\s*\\|$"
],
"depNameTemplate": "@tanstack/react-query",
"datasourceTemplate": "npm",
"versioningTemplate": "npm"
},
{
"customType": "regex",
"description": "Keep README Vitest version row in sync",
"managerFilePatterns": ["/^README\\.md$/"],
"matchStrings": [
"(?m)^\\|\\s*Vitest\\s*\\|\\s*(?<currentValue>[~^]?\\d+\\.\\d+\\.\\d(?:[-+][0-9A-Za-z.-]+)?)\\s*\\|$"
],
"depNameTemplate": "vitest",
"datasourceTemplate": "npm",
"versioningTemplate": "npm"
},
{
"customType": "regex",
"description": "Keep README Playwright version row in sync",
"managerFilePatterns": ["/^README\\.md$/"],
"matchStrings": [
"(?m)^\\|\\s*Playwright\\s*\\|\\s*(?<currentValue>[~^]?\\d+\\.\\d+\\.\\d(?:[-+][0-9A-Za-z.-]+)?)\\s*\\|$"
],
"depNameTemplate": "@playwright/test",
"datasourceTemplate": "npm",
"versioningTemplate": "npm"
},
{
"customType": "regex",
"description": "Keep README TypeScript version row in sync",
"managerFilePatterns": ["/^README\\.md$/"],
"matchStrings": [
"(?m)^\\|\\s*TypeScript\\s*\\|\\s*(?<currentValue>[~^]?\\d+\\.\\d+\\.\\d(?:[-+][0-9A-Za-z.-]+)?)\\s*\\|$"
],
"depNameTemplate": "typescript",
"datasourceTemplate": "npm",
"versioningTemplate": "npm"
}
],
"packageRules": [
Expand Down
Loading