-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathrenovate.json5
More file actions
102 lines (91 loc) · 3.18 KB
/
renovate.json5
File metadata and controls
102 lines (91 loc) · 3.18 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
// Available options:
// https://docs.renovatebot.com/configuration-options/
// M365 presets:
// https://github.com/microsoft/m365-renovate-config
// NOTE: Renovate only allows comments in .json5 files, but this isn't well-supported by
// Prettier + VS Code. Workaround is to configure tools to treat the file as JSONC
// (in .prettierrc and .vscode/settings.json).
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>microsoft/m365-renovate-config",
"github>microsoft/m365-renovate-config:disableEsmVersions",
"github>microsoft/m365-renovate-config:groupMore",
"github>microsoft/m365-renovate-config:groupTypes",
"github>microsoft/m365-renovate-config:keepFresh"
// TODO (release): re-enable and remove special rules
// "github>microsoft/m365-renovate-config:restrictNode(22)"
],
"gitAuthor": "Renovate Bot <renovate@whitesourcesoftware.com>",
"labels": ["renovate"],
"reviewers": ["ecraig12345", "kenotron"],
"reviewersSampleSize": 1,
// For some reason Renovate is detecting that the repo uses semantic commits
"semanticCommits": "disabled",
// The post-upgrade tasks must be repeated since in this repo we need to use beachball@latest
// to ensure it's pulled from the registry rather than trying to use the local version,
// which isn't built yet in the context of running Renovate.
"postUpgradeTasks": {
"commands": [
"git add --all",
"npx beachball@latest change --no-fetch --no-commit --type patch --message '{{{commitMessage}}}'",
"git reset"
],
"fileFilters": ["**/*"],
"executionMode": "branch"
},
"lockFileMaintenance": {
"postUpgradeTasks": {
"commands": [
"git add --all",
"npx beachball@latest change --no-fetch --no-commit --type none --message '{{{commitMessage}}}'",
"git reset"
],
"fileFilters": ["**/*"],
"executionMode": "branch"
}
},
"baseBranchPatterns": ["main", "v2"],
"packageRules": [
{
// get latest workspace-tools in main (dev) only
"matchBaseBranches": ["main"],
"matchPackageNames": ["workspace-tools"],
"matchUpdateTypes": ["major", "minor"],
"dependencyDashboardApproval": false
},
{
// updates disabled for v2 due to node 14 incompatibility
"matchBaseBranches": ["v2"],
"matchPackageNames": ["lage", "normalized-tmpdir"],
"enabled": false
},
{
"matchDepTypes": ["devDependencies"],
"postUpgradeTasks": {
"commands": [
"git add --all",
"npx beachball@latest change --no-fetch --no-commit --type none --message '{{{commitMessage}}}'",
"git reset"
],
"fileFilters": ["**/*"],
"executionMode": "branch"
}
},
// Temporary replacement for restrictNode
{
"matchBaseBranches": ["v2"],
"matchPackageNames": ["@types/node", "node", "nodejs/node", "node-version"],
"allowedVersions": "14"
},
{
"matchBaseBranches": ["main"],
"matchPackageNames": ["@types/node", "node", "nodejs/node", "node-version"],
"allowedVersions": "22"
},
{
"matchManagers": ["npm"],
"constraintsFiltering": "strict"
}
]
}