diff --git a/README.md b/README.md index 13bc28e..b9ebe37 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/renovate.json b/renovate.json index 25b7f7b..c4a6198 100644 --- a/renovate.json +++ b/renovate.json @@ -14,14 +14,110 @@ "customManagers": [ { "customType": "regex", - "managerFilePatterns": [ - "/^src\\/templates\\/overlays\\/.*\\/manifest\\.json$/" - ], + "managerFilePatterns": ["/^src\\/templates\\/overlays\\/.*\\/manifest\\.json$/"], "matchStrings": [ "(?m)^\\s{4}\"(?[^\"\\s]+)\":\\s*\"(?[~^]?\\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*'(?[^'\\s]+)'\\s*:\\s*'(?[~^]?\\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*(?[~^]?\\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*(?[~^]?\\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*(?[~^]?\\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*(?[~^]?\\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*(?[~^]?\\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*(?[~^]?\\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*(?[~^]?\\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*(?[~^]?\\d+\\.\\d+\\.\\d(?:[-+][0-9A-Za-z.-]+)?)\\s*\\|$" + ], + "depNameTemplate": "typescript", + "datasourceTemplate": "npm", + "versioningTemplate": "npm" } ], "packageRules": [