Repository navigation
Expand file tree
/
Copy pathrenovate.json5
More file actions
108 lines (97 loc) · 3.59 KB
/
Copy pathrenovate.json5
File metadata and controls
108 lines (97 loc) · 3.59 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
// Available options:
// https://docs.renovatebot.com/configuration-options/
// 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/beachball//renovate/presets/default",
"github>microsoft/beachball//renovate/presets/disableEsmVersions",
"github>microsoft/beachball//renovate/presets/groupMore",
"github>microsoft/beachball//renovate/presets/groupTypes",
"github>microsoft/beachball//renovate/presets/keepFresh",
"github>microsoft/beachball//renovate/presets/restrictNode(22)"
],
"ignorePaths": ["**/node_modules/**", "**/__*/**", "**/.yarn/**"],
"gitAuthor": "Renovate Bot <renovate@whitesourcesoftware.com>",
"labels": ["renovate"],
"reviewers": ["ecraig12345"],
// 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"
}
},
// Only check these managers for efficiency
"enabledManagers": ["custom.regex", "azure-pipelines", "bicep", "github-actions", "npm", "nvm"],
"customManagers": [
{
// Look for "using: 'nodeX'" in action.yaml files
"customType": "regex",
"managerFilePatterns": ["/(^|\\/)action\\.ya?ml$/"],
"matchStrings": ["using: 'node(?<currentValue>\\d+)'"],
"depNameTemplate": "@types/node",
"datasourceTemplate": "npm"
}
],
"packageRules": [
{
"matchPackageNames": ["workspace-tools"],
"matchUpdateTypes": ["major", "minor"],
"dependencyDashboardApproval": 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"
}
},
{
// These are bundled into @microsoft/esrp-npm-release and must be treated as production dependencies.
"matchFileNames": ["packages/esrp-npm-release/package.json"],
"matchDepTypes": ["devDependencies"],
"matchPackageNames": ["@azure/*", "jws", "nano-spawn", "yazl"],
"commitMessageTopic": "dependency {{{depName}}}",
"postUpgradeTasks": {
"commands": [
"git add --all",
"npx beachball@latest change --no-fetch --no-commit --type patch --message '{{{commitMessage}}}'",
"git reset"
],
"fileFilters": ["**/*"],
"executionMode": "branch"
}
},
{
"groupName": "github action packages",
"matchPackageNames": ["@actions/*"],
"matchManagers": ["npm"]
}
]
}