mirror of
https://github.com/yanhao98/renovate-example.git
synced 2025-07-13 07:10:50 +08:00
57 lines
1.9 KiB
Plaintext
57 lines
1.9 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"
|
|
],
|
|
"dependencyDashboard": false,
|
|
"forkProcessing": "enabled",
|
|
"rangeStrategy": "bump",
|
|
"labels": [
|
|
"dependencies"
|
|
],
|
|
"packageRules": [
|
|
{ "groupName": "github-actions", "matchManagers": [ "github-actions" ] },
|
|
{ "groupName": "Dockerfile", "matchManagers": [ "dockerfile" ] },
|
|
{ "groupName": "types", "groupSlug": "types", "matchPackageNames": [ "/^@types//" ] },
|
|
{ "groupName": "typescript", "matchDepNames": [ "typescript" ], "rangeStrategy": "replace" },
|
|
|
|
// manually update peer dependencies
|
|
{ "matchDepTypes": [ "peerDependencies" ], "enabled": false },
|
|
{ "minimumReleaseAge": "14 days", "matchPackageNames": [ "*" ] }
|
|
],
|
|
"customManagers": [
|
|
// https://semantic-release.gitbook.io/semantic-release/usage/installation#notes
|
|
/* === run: npx semantic-release@24 === */
|
|
{
|
|
"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"
|
|
}
|
|
]
|
|
} |