Skip to content

Commit 64b158a

Browse files
chore(config): migrate renovate config (#2133)
* chore(config): migrate config renovate.json * GH Actions: validate Renovate config * Renovate: use globs for easier patterns --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ronnie Dutta <[email protected]>
2 parents 21e7913 + 4f9bc8b commit 64b158a

File tree

2 files changed

+107
-36
lines changed

2 files changed

+107
-36
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Validate Renovate config
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- renovate.json
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
env:
14+
FORCE_COLOR: 2
15+
16+
jobs:
17+
validate:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 5
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 'lts/*'
28+
29+
- name: Validate config
30+
run: npx --yes --package renovate -- renovate-config-validator

renovate.json

Lines changed: 77 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,36 @@
22
"extends": [
33
"config:js-app"
44
],
5-
"labels": ["dependencies", "javascript"],
5+
"labels": [
6+
"dependencies",
7+
"javascript"
8+
],
69
"platformAutomerge": true,
710
"automergeStrategy": "squash",
811
"packageRules": [
912
{
10-
"matchDepNames": ["yarn"],
13+
"matchDepNames": [
14+
"yarn"
15+
],
1116
"automerge": true
1217
},
1318
{
14-
"matchPackageNames": ["vue"],
19+
"matchPackageNames": [
20+
"vue"
21+
],
1522
"automerge": true
1623
},
1724
{
1825
"groupName": "vite packages",
1926
"matchPackageNames": [
2027
"vite",
21-
"vite-plugin-vuetify"
22-
],
23-
"matchPackagePatterns": [
24-
"^@vitejs/"
28+
"vite-plugin-vuetify",
29+
"@vitejs/**"
2530
],
2631
"automerge": true,
27-
"schedule": ["on saturday"]
32+
"schedule": [
33+
"on saturday"
34+
]
2835
},
2936
{
3037
"groupName": "dev server packages",
@@ -36,34 +43,58 @@
3643
"nodemon"
3744
],
3845
"automerge": true,
39-
"schedule": ["on the 5th and 20th day of the month"]
46+
"schedule": [
47+
"on the 5th and 20th day of the month"
48+
]
4049
},
4150
{
42-
"matchPackageNames": ["vuetify"],
43-
"schedule": ["on the 7th day of the month"]
51+
"matchPackageNames": [
52+
"vuetify"
53+
],
54+
"schedule": [
55+
"on the 7th day of the month"
56+
]
4457
},
4558
{
4659
"groupName": "lumino packages",
47-
"matchPackagePatterns": ["^@lumino/"]
60+
"matchPackageNames": [
61+
"@lumino/**"
62+
]
4863
},
4964
{
5065
"groupName": "apollo packages",
51-
"matchPackagePatterns": ["^@apollo/"],
52-
"schedule": ["on the 10th day of the month"]
66+
"schedule": [
67+
"on the 10th day of the month"
68+
],
69+
"matchPackageNames": [
70+
"@apollo/**"
71+
]
5372
},
5473
{
55-
"matchPackageNames": ["sass-embedded"],
56-
"schedule": ["on the 25th day of the month"]
74+
"matchPackageNames": [
75+
"sass-embedded"
76+
],
77+
"schedule": [
78+
"on the 25th day of the month"
79+
]
5780
},
5881
{
59-
"matchPackageNames": ["@vueuse/core"],
82+
"matchPackageNames": [
83+
"@vueuse/core"
84+
],
6085
"automerge": true,
61-
"schedule": ["on the 9th day of the month"]
86+
"schedule": [
87+
"on the 9th day of the month"
88+
]
6289
},
6390
{
64-
"matchPackageNames": ["vue-i18n"],
91+
"matchPackageNames": [
92+
"vue-i18n"
93+
],
6594
"automerge": true,
66-
"schedule": ["on the 15th day of the month"]
95+
"schedule": [
96+
"on the 15th day of the month"
97+
]
6798
},
6899
{
69100
"groupName": "graphiql packages",
@@ -72,14 +103,20 @@
72103
"preact"
73104
],
74105
"automerge": true,
75-
"schedule": ["on the 12th day of the month"]
106+
"schedule": [
107+
"on the 12th day of the month"
108+
]
76109
},
77110
{
78111
"groupName": "eslint packages",
79-
"matchPackageNames": ["standard"],
80-
"matchPackagePatterns": ["^eslint"],
112+
"matchPackageNames": [
113+
"standard",
114+
"eslint*"
115+
],
81116
"automerge": true,
82-
"schedule": ["on the first day of the month"]
117+
"schedule": [
118+
"on the first day of the month"
119+
]
83120
},
84121
{
85122
"groupName": "tests packages",
@@ -88,28 +125,32 @@
88125
"cross-fetch",
89126
"jsdom",
90127
"nyc",
91-
"sinon"
92-
],
93-
"matchPackagePatterns": [
94-
"^@?cypress",
95-
"^@?vitest",
96-
"coverage",
97-
"istanbul"
128+
"sinon",
129+
"/^@?cypress/",
130+
"/^@?vitest/",
131+
"/coverage/",
132+
"/istanbul/"
98133
],
99134
"automerge": true,
100-
"schedule": ["on sunday"]
135+
"schedule": [
136+
"on sunday"
137+
]
101138
},
102139
{
103140
"groupName": "analysis view packages",
104141
"matchPackageNames": [
105-
"apexcharts",
106-
"vue3-apexcharts"
142+
"apexcharts",
143+
"vue3-apexcharts"
107144
],
108-
"addLabels": ["data workflows team"]
145+
"addLabels": [
146+
"data workflows team"
147+
]
109148
}
110149
],
111150
"vulnerabilityAlerts": {
112-
"addLabels": ["security"]
151+
"addLabels": [
152+
"security"
153+
]
113154
},
114155
"github-actions": {
115156
"enabled": false

0 commit comments

Comments
 (0)