-
Notifications
You must be signed in to change notification settings - Fork 0
/
renovate.json5
97 lines (97 loc) · 2.99 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
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
// 👇 Defined in https://github.com/renovatebot/renovate/blob/37.71.1/lib/config/presets/internal/config.ts
extends: [
'config:best-practices',
'config:js-app',
'github>davidlj95/renovate-config:angular/v18.2.x',
],
prHourlyLimit: 0,
prConcurrentLimit: 5,
schedule: [
// Validate using https://codepen.io/rationaltiger24/full/ZExQEgK
// Though even if that says is valid, maybe invalid 🙃 as it wants 0 errors despite compiling
// So to be sure, `npm i later` on a tmp dir, `var later = require('later')' and check
// `later.parse.text('whatever schedule')` returns no errors (-1)
'at 9:00 am on the 1-7 day of the month on Saturday',
],
timezone: 'Europe/Madrid',
labels: ['dependencies'],
npm: {
// Keep Angular CLI versions used to create example apps updated
fileMatch: ['projects/ngx-meta/example-apps/angular-cli-versions.json'],
},
packageRules: [
// Lib config for published package JSONs
{
matchFileNames: ['projects/ngx-meta/src/package.json'],
extends: ['config:js-lib'],
},
// Semantic commit messages & PR titles. Mocks @dependabot ones:
// build(deps) for production dependencies, build(deps-dev) for dev dependencies (see below)
// ℹ️ If placing this 👇 commit type and scope default in root config doesn't work. Most probably the config
// presets override that
{
matchFileNames: ['**/*'],
semanticCommitType: 'build',
semanticCommitScope: 'deps',
},
{
matchDepTypes: ['devDependencies'],
semanticCommitScope: 'dev-deps',
},
// Tagging
{
matchManagers: ['github-actions'],
addLabels: ['github-actions'],
},
{
matchCategories: ['js'],
addLabels: ['javascript'],
},
{
matchCategories: ['node'],
addLabels: ['node'],
},
// Auto-merge minor/patch production ones, dev dependencies, E2E deps
{
matchUpdateTypes: ['minor', 'patch', 'pin', 'digest'],
automerge: true,
},
// Angular v18
{
matchDepNames: ['@angular{/,}**'],
matchFileNames: ['package.json'],
allowedVersions: '^18',
},
// Example apps major versions
{
matchFileNames: [
'projects/ngx-meta/example-apps/angular-cli-versions.json',
],
matchDepNames: ['v15'],
allowedVersions: '^15',
},
{
matchFileNames: [
'projects/ngx-meta/example-apps/angular-cli-versions.json',
],
matchDepNames: ['v16'],
allowedVersions: '^16',
},
{
matchFileNames: [
'projects/ngx-meta/example-apps/angular-cli-versions.json',
],
matchDepNames: ['v17'],
allowedVersions: '^17',
},
// API Documenter to use Markdown tables
// Watching issue to see if we can upgrade when fixed
// https://github.com/microsoft/rushstack/issues/4586
{
matchDepNames: ['@microsoft/api-documenter'],
allowedVersions: '7.23.38',
},
],
}