0
0
mirror of https://github.com/yanhao98/renovate-example.git synced 2025-07-13 05:30:48 +08:00
Files
renovate-example/default.json5
renovate[bot] 5b9eb98c71 Update all non-major dependencies (#128)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-30 21:25:45 +00:00

69 lines
2.5 KiB
Plaintext

{
// https://docs.renovatebot.com/configuration-options/
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
"mergeConfidence:all-badges",
"group:allNonMajor",
":semanticCommitTypeAll(chore)",
"customManagers:dockerfileVersions",
"customManagers:githubActionsVersions",
"helpers:disableTypesNodeMajor",
":widenPeerDependencies",
":semanticCommitTypeAll(chore)"
],
"prHourlyLimit": 5,
"dependencyDashboard": false,
"forkProcessing": "enabled",
"rangeStrategy": "bump",
"labels": [
"dependencies"
],
"packageRules": [
// It's easier to deal with all the Vite plugins at once when Vite ships a new major version
{ "groupName": "vite packages", "extends": ["packages:vite"] },
// TypeScript doesn't follow semver, so we need to separate minor and patch updates
// <https://www.semver-ts.org/1-background.html>
{ "groupName": "typescript", "matchDepNames": ["typescript"], "separateMinorPatch": true, "separateMultipleMinor": true },
// Minor releases for v0.x packages may contain breaking changes
{ "groupName": "v0.x", "matchCurrentVersion": "/^0./", "separateMinorPatch": true },
{ "groupName": "github-actions", "matchManagers": [ "github-actions" ] },
{ "groupName": "Dockerfile", "matchManagers": [ "dockerfile" ] },
{ "groupName": "types", "groupSlug": "types", "matchPackageNames": [ "/^@types//" ] },
{ "minimumReleaseAge": "14 days", "matchPackageNames": [ "*" ] },
// manually update peer dependencies
{ "matchDepTypes": [ "peerDependencies" ], "enabled": false }
],
"customManagers": [
// https://semantic-release.gitbook.io/semantic-release/usage/installation#notes
/* === run: npx semantic-release@24.2.1 === */
{
"customType": "regex",
"description": "Update semantic-release version used by npx",
"fileMatch": [
"^\\.github/workflows/[^/]+\\.ya?ml$",
"^default\\.json5$"
],
"matchStrings": [
"\\srun: npx semantic-release@(?<currentValue>.*?)\\s"
],
"datasourceTemplate": "npm",
"depNameTemplate": "semantic-release"
},
{
"customType": "regex",
"description": "Update Node.js version configured in `.npmrc`. match `use-node-version=22.9.0`",
"fileMatch": [
"^\\.npmrc$"
],
"matchStrings": [
"use-node-version=(?<currentValue>.*?)\\s"
],
"datasourceTemplate": "node",
"depNameTemplate": "node"
}
]
}