Skip to content

Commit 45c6db5

Browse files
committed
chore: protect main renovate bumps
1 parent 72ad7e7 commit 45c6db5

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

.github/renovate.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@
1313
{
1414
"groupName": "storybook ecosystem",
1515
"matchPackageNames": ["storybook", "@storybook/*", "@types/storybook*"],
16-
"matchUpdateTypes": ["minor", "patch"],
17-
"baseBranches": ["main"]
16+
"matchUpdateTypes": ["minor", "patch"]
1817
},
1918
{
20-
"groupName": "storybook ecosystem (S2)",
21-
"matchPackageNames": ["storybook", "@storybook/*", "@types/storybook*", "@chromatic-com/storybook"],
22-
"matchUpdateTypes": ["major", "minor", "patch"],
23-
"baseBranches": ["spectrum-two"]
19+
"groupName": "storybook ecosystem (disabled)",
20+
"matchPackageNames": [
21+
"storybook",
22+
"@storybook/*",
23+
"@types/storybook*",
24+
"@chromatic-com/storybook"
25+
],
26+
"matchUpdateTypes": ["major"],
27+
"baseBranches": ["main"],
28+
"enabled": false
2429
},
2530
{
2631
"groupName": "commitlint ecosystem",

lint-staged.config.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ module.exports = {
33
"stylelint --fix --cache --allow-empty-input --report-descriptionless-disables --report-invalid-scope-disables --report-needless-disables",
44
"prettier --no-config --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write --config .prettierrc",
55
],
6-
"*.{js,json}": [
7-
"eslint --fix --cache --no-error-on-unmatched-pattern --quiet"
6+
"*.{js,json},!package.json": [
7+
"eslint --fix --cache --no-error-on-unmatched-pattern"
88
],
99
"*.{md,mdx}": [
1010
"prettier --no-error-on-unmatched-pattern --ignore-unknown --log-level silent --write --config .prettierrc",
1111
"markdownlint --config .markdownlint.json --fix"
1212
],
13-
"package.json": () => ([
13+
"package.json": (files) => ([
1414
"yarn constraints --fix",
1515
"yarn install --refresh-lockfile",
16+
`eslint --fix --cache --no-error-on-unmatched-pattern ${files.join(" ")}`,
1617
"git add yarn.lock"
1718
]),
1819
"dist/*.css": [
@@ -22,5 +23,8 @@ module.exports = {
2223
return [
2324
...(files.map(file => `pajv test --valid -s ./schemas/metadata.schema.json -d "${file}"`) ?? []),
2425
];
25-
}
26+
},
27+
".github/renovate.json": () => ([
28+
"yarn dlx --package renovate -- renovate-config-validator"
29+
])
2630
};

0 commit comments

Comments
 (0)