forked from ionic-team/stencil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
renovate.json5
181 lines (181 loc) · 6.47 KB
/
renovate.json5
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
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
/**
* Documentation: https://docs.renovatebot.com/configuration-options
*
* This configuration file can be locally validated:
* 1. `npm i -g renovate` will install the validator
* 2. `renovate-config-validator` will run the validator
*/
dependencyDashboard: true,
ignoreDeps: [
// TODO(STENCIL-596): Remove once rollup upgrade is unblocked
'rollup',
'@rollup/plugin-commonjs',
'@rollup/plugin-node-resolve',
],
ignorePaths: [
'test/package.json',
'test/browser-compile',
'test/end-to-end',
'test/hello-vdom',
'test/hello-world',
'test/ionic-app',
'test/jest-spec-runner',
'test/performance',
'test/prerender-shadow',
'test/style-modes',
'test/todo-app',
],
/**
* Apply these labels to every PR
*/
labels: ['dependencies'],
/**
* The minimum age (in days) for updates that have a release timestamp header to be PR'ed.
* This will not batch releases together - if package A gets a release on Monday, Tuesday and Wednesday and has a
* `minimumReleaseAge: 3` and runs every day, then a PR will be created on:
* - Thursday (for Monday's release)
* - Friday (for Tuesday's release)
* - Saturday (for Wednesday's release)
*
* This setting is to prevent a compromised package from being merged into Stencil in the first three days of its
* release date
*
* A value of 3 days was chosen as npm packages younger than 72 hours old can be unpublished. This prevents merging
* support for a package that could be removed from the registry.
*/
minimumReleaseAge: '3 days',
/**
* Note: Renovate will evaluate all packageRules and not stop once it gets a first match.
*/
packageRules: [
{
matchPackageNames: ['@types/node'],
allowedVersions: '<21.0.0',
},
{
// Increment this value as a part of updating TypeScript
matchPackageNames: ['typescript'],
allowedVersions: '<5.5.0',
commitMessagePrefix: "feat(typescript):"
},
{
// disable Jest updates until the new testing architecture is in place
matchPackageNames: ['@types/jest', 'jest', 'jest-cli', 'jest-environment-node'],
groupName: 'Jest',
allowedVersions: '<28.0.0',
},
{
matchPackagePrefixes: ['@typescript-eslint'],
groupName: 'TypeScript-ESLint',
// these packages can be released often, let's look at them every week
// Note: Timezone for the schedule is specified as UTC
schedule: ["before 11am on monday"]
},
{
// group these two, as they may rely on one another during major version bumps (see #5191)
matchPackageNames: ['actions/download-artifact', 'actions/upload-artifact'],
groupName: 'Download + Upload Artifacts',
},
{
matchPackageNames: ['eslint-plugin-jsdoc'],
// this package can be released often, let's look at it every week
// Note: Timezone for the schedule is specified as UTC
schedule: ["before 11am on monday"]
},
{
"matchFileNames": ["src/testing/jest/jest-27-and-under/package.json"],
matchPackageNames: ['@types/jest', 'jest'],
allowedVersions: '<=27'
},
{
"matchFileNames": ["src/testing/jest/jest-28/package.json"],
matchPackageNames: ['@types/jest', 'jest'],
allowedVersions: '<=28'
},
{
"matchFileNames": ["src/testing/jest/jest-29/package.json"],
matchPackageNames: ['@types/jest', 'jest'],
allowedVersions: '<=29'
},
{
// We intentionally run the karma tests against the oldest LTS of Node we support.
// Prevent renovate from trying to bump node
matchFileNames: ['test/karma/package.json'],
matchDepNames: ['node'],
allowedVersions: '<=16'
},
{
// We intentionally run the WebdriverIO tests against the oldest LTS of Node we support.
// Prevent renovate from trying to bump node
matchFileNames: ['test/wdio/package.json'],
matchDepNames: ['node'],
allowedVersions: '<=16'
},
{
// We intentionally run the karma tests against the oldest LTS of Node we support.
// Prevent renovate from trying to bump node
matchFileNames: ['test/karma/package.json'],
matchPackageNames: ['@types/node'],
allowedVersions: '<=16'
},
{
// We intentionally run the karma tests against the oldest LTS of Node we support.
// Prevent renovate from trying to bump npm and keep it in sync with a version that's supported by the version of
// Node we run against.
matchFileNames: ['test/karma/package.json'],
matchDepNames: ['npm'],
allowedVersions: '<=8'
},
{
// We intentionally run the karma tests against TypeScript v5.2 as an attempt to update has failed
// due to incompatibilities with `karma-typescript`. Prevent renovate from trying to bump TypeScript.
matchFileNames: ['test/karma/package.json'],
matchDepNames: ['typescript'],
allowedVersions: '<5.3'
},
{
matchPackageNames: ['rollup'],
matchPackagePrefixes: ['@rollup'],
groupName: 'rollup,'
},
{
matchPackageNames: ['expect-webdriverio'],
matchPackagePrefixes: ['@wdio'],
groupName: 'webdriverio,'
},
// TODO(STENCIL-1088): remove once support for Node v16 is dropped
{
matchPackageNames: ['open'],
allowedVersions: '<10',
},
// TODO(STENCIL-1141): remove once support for Node v16 is dropped
{
matchPackageNames: ['puppeteer'],
allowedVersions: '<=21',
}
],
// Never rebase the branch or update it unless manually requested to avoid noisy PR emails
rebaseWhen: 'never',
/**
* Run every Monday and Thursday between midnight at 11 AM (in UTC)
*
* Monday and Thursday were chosen to:
* - Keep the `minimumReleaseAge` value in mind (three days)
* - Prevent spikes/bursts of PRs from Renovate on a single day of the week
*
* We use cron syntax here as it's more deterministic/easier to provide a value that we know that Renovate will
* accept, compared to the natural language syntax which is (subjectively) trickier to test without merging first.
*
* {@see https://crontab.guru} for debugging cron schedules
*/
schedule: ['* 0-11 * * 1,4'],
/**
* Ensure semantic commits are enabled for commits + PR titles.
*
* By default, Angular-style semantic commits will have a type of 'chore' and a scope of 'deps':
* `chore(deps): _your git commit title here_`
*/
semanticCommits: "enabled",
}