Skip to content

Commit 64ece0c

Browse files
committed
Add custom renovate manager to update circle ci orb versions
1 parent b70e4b4 commit 64ece0c

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

packages/code-infra/circleci/code-infra.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,18 @@ commands:
8484
run-linters:
8585
description: 'Runs all code linters'
8686
steps:
87+
- restore_cache:
88+
keys:
89+
- eslint-cache-{{ checksum "pnpm-lock.yaml" }}
90+
- eslint-cache-
8791
- run:
8892
name: ESLint
89-
command: pnpm eslint:ci
93+
# No need to rely on eslint:ci from package.json. This won't change across repos.
94+
command: pnpm exec eslint . --cache --cache-strategy content --report-unused-disable-directives --max-warnings 0
95+
- save_cache:
96+
key: eslint-cache-{{ checksum "pnpm-lock.yaml" }}
97+
paths:
98+
- .eslintcache
9099
- run:
91100
name: Stylelint
92101
command: pnpm stylelint
@@ -155,6 +164,7 @@ commands:
155164
pnpm size:snapshot
156165
157166
executors:
167+
# Can be used as a single source of truth for Node version across all code-infra jobs on CI
158168
mui-node:
159169
parameters:
160170
node-version:

renovate/default.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@
2727
"internalChecksFilter": "strict",
2828
"ignorePresets": [":ignoreModulesAndTests"],
2929
"ignorePaths": ["**/node_modules/**", "**/examples/**", "**/__tests__/**", "**/__fixtures__/**"],
30+
"customManagers": [
31+
{
32+
"description": "Extracts dependencies from YAML files using regex patterns.",
33+
"customType": "regex",
34+
"managerFilePatterns": ["/.yml$/", "/.yaml$/"],
35+
"matchStrings": [
36+
// Look for both raw.githubusercontent and unpkg patterns
37+
"https:\\\/\\\/raw\\.githubusercontent\\.com\\\/mui\\\/mui-public\\\/refs\\\/tags\\\/(?<depName>@?[^@]+)@(?<currentValue>[^\\\/]+)\\\/.+",
38+
"https:\\\/\\\/unpkg\\.com\\\/(?<depName>@?[^@]+)@(?<currentValue>[^\\\/]+)\\\/.+"
39+
],
40+
"datasourceTemplate": "npm",
41+
"depTypeTemplate": "devDependencies"
42+
}
43+
],
3044
"packageRules": [
3145
{
3246
"matchDepTypes": ["peerDependencies"],

0 commit comments

Comments
 (0)