-
-
Notifications
You must be signed in to change notification settings - Fork 325
Expand file tree
/
Copy path.renovaterc.json5
More file actions
184 lines (184 loc) · 5.08 KB
/
Copy path.renovaterc.json5
File metadata and controls
184 lines (184 loc) · 5.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":semanticCommitsDisabled"
],
"prHourlyLimit": 20,
"addLabels": [
"renovate"
],
"osvVulnerabilityAlerts": true,
// always bump depdenencies even when are in the range
"rangeStrategy": "bump",
"vulnerabilityAlerts": {
"labels": [
"security"
],
"rangeStrategy": "bump",
// security fixes must not be delayed by minimumReleaseAge
"minimumReleaseAge": "0 days",
},
// disable autorebasing to save unecessary workflow runs
"rebaseWhen": "conflicted",
// hold updates that do not yet satisfy minimumReleaseAge instead of raising a
// pending PR (which would run CI and fail pnpm's minimumReleaseAge policy)
"internalChecksFilter": "strict",
"ignoreDeps": [
// it must be the same as bundled in Electron
"node",
// it must be the oldest possible version to get binary compatibility with older OSes
"ubuntu"
],
// mise.lock pins a checksum and a URL per tool per platform, but a local
// `mise install` re-locks only the platform it runs on and silently leaves
// the other seven stale. Lock file maintenance runs plain `mise lock`, which
// refreshes every tool on every platform already in the file. Defaults are
// disabled and weekly, hence the explicit settings; the packageRules below
// keep it to mise.lock, since pnpm-lock.yaml is maintained by its own
// workflows and does not want a periodic refresh PR.
"lockFileMaintenance": {
"enabled": true,
"schedule": [
"at any time"
],
"automerge": true
},
"packageRules": [
{
"matchUpdateTypes": [
"lockFileMaintenance"
],
"enabled": false
},
{
"matchManagers": [
"mise"
],
"matchUpdateTypes": [
"lockFileMaintenance"
],
"enabled": true
},
// delay npm updates until they satisfy pnpm's minimumReleaseAge policy
// (default 1 day since pnpm v11); only npm packages land in pnpm-lock.yaml,
// so scope this to the npm datasource and leave other datasources untouched
{
"matchDatasources": [
"npm"
],
"minimumReleaseAge": "25 hours"
},
// peerDependencies are widen
{
"matchDepTypes": [
"peerDependencies"
],
"rangeStrategy": "widen",
"semanticCommitScope": "peer-deps"
},
// non-major updates only
{
"matchDepNames": [
"electron",
"npm"
],
"matchUpdateTypes": [
"major"
],
"enabled": false
},
// patch updates only
{
"matchDepNames": [
"@types/node",
],
"matchUpdateTypes": [
"major",
"minor"
],
"enabled": false
},
// packages that misuse semver
{
"matchDepNames": [
"node-pty"
],
"versioning": "deb",
"enabled": true
},
// bundle
{
"groupName": "electron-builder bundle",
"matchDepNames": [
"electron-builder",
"electron-builder-squirrel-windows"
]
},
// monorepo
{
"groupName": "ogre-tools monorepo",
"matchSourceUrls": [
"https://github.com/ogre-works/ogre-tools"
]
}
],
"customManagers": [
// bundled freelens-k8s-proxy
{
"customType": "regex",
"extractVersionTemplate": "^(?<version>.*)$",
"managerFilePatterns": [
"/^freelens/package\\.json$/"
],
"matchStrings": [
"\"k8sProxyVersion\":\\s*\"(?<currentValue>\\d+\\.\\d+\\.\\d+)\""
],
"datasourceTemplate": "github-releases",
"depNameTemplate": "freelensapp/freelens-k8s-proxy",
"versioningTemplate": "semver"
},
// bundled helm
{
"customType": "regex",
"extractVersionTemplate": "^(?<version>.*)$",
"managerFilePatterns": [
"/^freelens/package\\.json$/"
],
"matchStrings": [
"\"bundledHelmVersion\":\\s*\"(?<currentValue>\\d+\\.\\d+\\.\\d+)\""
],
"datasourceTemplate": "github-releases",
"depNameTemplate": "helm/helm",
"versioningTemplate": "semver"
},
// pnpm dlx
{
"customType": "regex",
"extractVersionTemplate": "^(?<version>.*)$",
"managerFilePatterns": [
"/package\\.json$/"
],
"matchStrings": [
"pnpm\\s+dlx\\s+(?<depName>\\S+)@(?<currentValue>\\S+?)[\\s\"|<>]"
],
"datasourceTemplate": "npm",
"versioningTemplate": "npm"
},
// renovate hints after comment
{
"customType": "regex",
"extractVersionTemplate": "^v?(?<version>.*)$",
"managerFilePatterns": [
"/^\\.github/workflows/.*\\.ya?ml$/",
"/^\\.trunk/trunk.yaml/",
"/^\\.tool-versions$/",
"/^freelens/electron-builder\\.yml$/"
],
"matchStrings": [
"(\\s+|.*?@)(?<currentValue>\\S+?)!?\\s*#\\s*datasource=(?<datasource>\\S+)\\s+depName=(?<depName>\\S+)(\\s+versioning=(?<versioning>\\S+))?(\\s+registryUrl=(?<registryUrl>\\S+))?\\s*\\n"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}
]
}