ci: regenerate codemirror languages on renovate npm updates (#38267)

Adds `make generate-codemirror-languages` to the npm group's
`postUpgradeTasks` in `renovate.json5`, so renovate regenerates
`assets/codemirror-languages.json` whenever `@codemirror/language-data`
(or any npm dep) updates — mirroring the existing `make svg` handling.

Also reformats the `fileFilters` arrays multi-line and regenerates the
asset to pick up current upstream linguist languages.
This commit is contained in:
silverwind
2026-06-30 00:59:08 +02:00
committed by GitHub
parent b34a09be38
commit 535f791166
2 changed files with 22 additions and 3 deletions

View File

@@ -436,6 +436,7 @@
"jsonl",
"mcmeta",
"sarif",
"slnlaunch",
"tact",
"tfstate",
"topojson",
@@ -691,10 +692,17 @@
"extensions": [
"ini",
"cnf",
"container",
"dof",
"lektorproject",
"mount",
"network",
"prefs",
"properties",
"service",
"socket",
"target",
"timer",
"url",
"conf"
],

View File

@@ -73,7 +73,11 @@
"postUpdateOptions": ["gomodUpdateImportPaths"],
"postUpgradeTasks": {
"commands": ["make tidy"],
"fileFilters": ["go.mod", "go.sum", "assets/go-licenses.json"],
"fileFilters": [
"go.mod",
"go.sum",
"assets/go-licenses.json",
],
"executionMode": "branch",
},
},
@@ -95,8 +99,15 @@
"matchManagers": ["npm"],
"postUpdateOptions": ["pnpmDedupe"],
"postUpgradeTasks": {
"commands": ["make svg"],
"fileFilters": ["package.json", "pnpm-lock.yaml", "pnpm-workspace.yaml", "public/assets/img/svg/**", "options/fileicon/**"],
"commands": ["make svg", "make generate-codemirror-languages"],
"fileFilters": [
"package.json",
"pnpm-lock.yaml",
"pnpm-workspace.yaml",
"public/assets/img/svg/**",
"options/fileicon/**",
"assets/codemirror-languages.json",
],
"executionMode": "branch",
},
},