This commit is contained in:
Harsh Shandilya 2023-01-18 01:06:08 +05:30
parent beb34d58fb
commit 44444cb55e

View File

@ -37,6 +37,7 @@ There are times where you're sticking with an older version of a package (tempor
Renovate already includes preset configurations for [monorepos](https://github.com/renovatebot/renovate/blob/b4d1ad8e5210017a3550c9da4342b0953a70330a/lib/config/presets/internal/monorepo.ts) that publish multiple packages with identical versions, but you can also easily add more of your own. As an example, here's how you can combine updates of the serde crate and its derive macro. Renovate already includes preset configurations for [monorepos](https://github.com/renovatebot/renovate/blob/b4d1ad8e5210017a3550c9da4342b0953a70330a/lib/config/presets/internal/monorepo.ts) that publish multiple packages with identical versions, but you can also easily add more of your own. As an example, here's how you can combine updates of the serde crate and its derive macro.
```json ```json
{
"packageRules": [ "packageRules": [
{ {
"managers": [ "managers": [
@ -49,6 +50,7 @@ Renovate already includes preset configurations for [monorepos](https://github.c
"groupName": "serde" "groupName": "serde"
} }
] ]
}
``` ```
## Set a semver range for upgrades ## Set a semver range for upgrades
@ -56,12 +58,14 @@ Renovate already includes preset configurations for [monorepos](https://github.c
Sometimes there are cases where you may need to set an upper bound on a package dependency to avoid breaking changes or regressions. Renovate offers intuitive support for the same. Sometimes there are cases where you may need to set an upper bound on a package dependency to avoid breaking changes or regressions. Renovate offers intuitive support for the same.
```json ```json
{
"packageRules": [ "packageRules": [
{ {
"matchPackageNames": ["com.android.tools.build:gradle"], "matchPackageNames": ["com.android.tools.build:gradle"],
"allowedVersions": "<=7.4.0" "allowedVersions": "<=7.4.0"
} }
] ]
}
``` ```
## Supporting non-standard dependency declarations ## Supporting non-standard dependency declarations
@ -78,6 +82,7 @@ For example, you can specify the version of Hugo to build your Netlify site with
This is how the relevant configuration might look like with Renovate This is how the relevant configuration might look like with Renovate
```json ```json
{
"regexManagers": [ "regexManagers": [
{ {
"description": "Update Hugo version in Netlify config", "description": "Update Hugo version in Netlify config",
@ -88,7 +93,8 @@ This is how the relevant configuration might look like with Renovate
"depNameTemplate": "gohugoio/hugo", "depNameTemplate": "gohugoio/hugo",
"datasourceTemplate": "github-releases" "datasourceTemplate": "github-releases"
} }
], ]
}
``` ```
You can read more about Regex Managers [here](https://docs.renovatebot.com/modules/manager/regex/). You can read more about Regex Managers [here](https://docs.renovatebot.com/modules/manager/regex/).