-
Notifications
You must be signed in to change notification settings - Fork 87
/
renovate.json5
104 lines (98 loc) · 3.54 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
{
extends: ['github>valora-inc/renovate-config:default.json5', ':disableDigestUpdates'],
// Restrict semantic commit type to "chore"
// See: https://docs.renovatebot.com/presets-default/#semanticprefixfixdepschoreothers
// https://github.com/renovatebot/renovate/discussions/14026
ignorePresets: [':semanticPrefixFixDepsChoreOthers'],
// Limit number of concurrent renovate branches/PRs, to avoid spamming the repo
prConcurrentLimit: 4,
// timezone for automerge schedule
timezone: 'America/Los_Angeles',
// Only automerge when the team is mostly offline
// NOTE: base config uses platformAutomerge: true, so this only takes effect after the PR is updated.
// To make sure GitHub-managed automerges only take place during the schedule, we also set "schedule"
automergeSchedule: [
'after 5pm', // in central Europe this is 2am to 8am, +/- 1hr when 1 region is on DST and the other isn't
'every weekend',
],
// Only open PRs and rebase branches when the team is mostly offline
// See note above about platform automerge.
schedule: [
'after 5pm', // in central Europe this is 2am to 8am, +/- 1hr when 1 region is on DST and the other isn't
'every weekend',
],
// The order of objects in the packageRules array does matter,
// in the sense that rules declared later (towards the end of the array)
// overwrite values of an also-matching rule declared earlier.
packageRules: [
{
// set higher priority for node dependencies
matchManagers: ['npm'],
prPriority: 2,
},
{
// Allow renovate to update node
matchDepTypes: ['engines'],
enabled: true,
// a bit higher priority for node updates
prPriority: 3,
},
{
// Group devDependencies updates
matchDepTypes: ['devDependencies'],
groupName: 'devDependencies',
// But exclude some specific packages from this group
excludePackageNames: ['typescript'],
// set default priority for dev dependencies
prPriority: 0,
},
{
// Low priority for gradle dependencies
matchManagers: ['gradle', 'gradle-wrapper'],
prPriority: -1,
},
{
// Group updates for @testing-library packages
matchPackagePatterns: ['^@testing-library/'],
groupName: 'testing-library',
},
{
// Group updates for @react-native-firebase packages
matchPackagePatterns: ['^@react-native-firebase/'],
groupName: 'react-native-firebase',
// TODO(ENG-105): enable once we have migrated away from react-native-sms-retriever
enabled: false,
},
{
// Group updates for @segment packages
matchPackagePatterns: ['^@segment/'],
groupName: 'segment',
},
{
// Group updates for prettier packages
matchPackagePatterns: ['^prettier'],
groupName: 'prettier',
},
{
// Group updates for walletconnect packages
matchPackagePatterns: ['^@walletconnect/'],
groupName: 'walletconnect',
},
{
// Avoid auto merge of major updates on rn, auth0, firebase and walletconnect
matchPackagePatterns: [
'^@react-native-firebase/',
'react-native-auth0',
'^@walletconnect/',
'^react-native$',
],
matchUpdateTypes: ['major'],
automerge: false,
},
],
// A list of dependencies to be ignored by Renovate - "exact match" only
ignoreDeps: [
'lottie-react-native', // TODO (act-1187): handle 6.x breaking changes and upgrade
'react-native-shake', // https://github.com/Doko-Demo-Doa/react-native-shake/issues/62
],
}