Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: port Renovate changes from metalsmith-plugins #809

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 6 additions & 15 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@
rebaseWhen: 'conflicted', // separate PRs updating the lockfile are likely to conflict each other
updateNotScheduled: true, // default

// Allow some post-upgrade commands that may be used below
allowedPostUpgradeCommands: [
'^npm ci --ignore-scripts$',
'^npm run lint:fix$',
],

packageRules: [
{
matchCategories: ['node'],
Expand Down Expand Up @@ -89,6 +83,8 @@
// Group dependencies and their `@types/*` packages together
groupName: 'dependencies',
matchDepTypes: ['dependencies', 'devDependencies'],
// Only group non-major updates
matchUpdateTypes: ['patch', 'minor']
},
{
matchDepTypes: ['dependencies'],
Expand All @@ -104,6 +100,7 @@
{
// Group devDependencies together, minus type definitions for dependencies
// https://github.com/renovatebot/renovate/issues/519
groupName: 'dev dependencies',
matchDepTypes: ['devDependencies'],
excludePackageNames: [
'@types/7zip-min',
Expand All @@ -118,22 +115,16 @@
'@types/xml2js',
'@types/yargs',
],
groupName: 'dev dependencies',
// Only group non-major updates
matchUpdateTypes: ['patch', 'minor']
},
{
// Group ESLint together so files can be fixed automatically
matchPackagePatterns: [
'^@typescript-eslint',
'^eslint',
],
groupName: 'ESLint',
postUpgradeTasks: {
commands: [
'npm ci --ignore-scripts',
'npm run lint:fix',
],
fileFilters: ['**/*.ts']
},
groupName: 'ESLint'
},
{
// Group Jest together because of peerDependencies
Expand Down
Loading