Skip to content

Commit

Permalink
Add automatic update of Chrome, Firefox and Node.js version in workfl…
Browse files Browse the repository at this point in the history
…ow into renovate bot config (#25625)
  • Loading branch information
timbset authored Sep 20, 2023
1 parent ced2a2b commit d2e5b5f
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 4 deletions.
45 changes: 44 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,55 @@
},
{
"matchPackagePatterns": [ "*" ],
"excludePackagePrefixes": [ "cldr-" ],
"excludePackagePrefixes": [ "cldr-", "chrome", "firefox" ],
"matchUpdateTypes": [ "major" ],
"dependencyDashboardApproval": true
}
],
"constraints": {
"node": "^16.3.0"
},
"regexManagers": [
{
"fileMatch": ["^\\.github\\/.+\\.ya?ml$"],
"matchStrings": [
"node-version:\\s*['\"]?(?<currentValue>\\d+([\\.-]\\d+)+)['\"]?(\\s|$)"
],
"depNameTemplate": "node",
"versioningTemplate": "node",
"datasourceTemplate": "node-version"
},
{
"fileMatch": ["^\\.github\\/.+\\.ya?ml$"],
"matchStrings": [
"chrome-version:\\s*['\"]?(?<currentValue>\\d+(\\.\\d+)+)(-1)?['\"]?(\\s|$)"
],
"depNameTemplate": "chrome",
"versioningTemplate": "regex:(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)\\.(?<build>\\d+)",
"datasourceTemplate": "custom.chrome"
},
{
"fileMatch": ["^\\.github\\/.+\\.ya?ml$"],
"matchStrings": [
"firefox-version:\\s*['\"]?(?<currentValue>\\d+(\\.\\d+)+)['\"]?(\\s|$)"
],
"depNameTemplate": "firefox",
"versioningTemplate": "semver",
"datasourceTemplate": "custom.firefox"
}
],
"customDatasources": {
"chrome": {
"defaultRegistryUrlTemplate": "https://versionhistory.googleapis.com/v1/chrome/platforms/linux/channels/stable/versions",
"transformTemplates": [
"{ \"releases\": $.versions }"
]
},
"firefox": {
"defaultRegistryUrlTemplate": "https://product-details.mozilla.org/1.0/firefox_history_stability_releases.json",
"transformTemplates": [
"{ \"releases\": $each($, function($v, $k) { { \"version\": $k } }) }"
]
}
}
}
2 changes: 1 addition & 1 deletion .github/workflows/devextreme_angular_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Get sources
uses: actions/checkout@v4

- name: Use Node.js 18
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.16.1'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/devextreme_react_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Get sources
uses: actions/checkout@v4

- name: Use Node.js 18
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.16.1'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/devextreme_vue_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Get sources
uses: actions/checkout@v4

- name: Use Node.js 18
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.16.1'
Expand Down

0 comments on commit d2e5b5f

Please sign in to comment.