{ $schema: 'https://docs.renovatebot.com/renovate-schema.json', extends: [ 'config:recommended', ], dependencyDashboard: true, configMigration: true, // Personal preferences timezone: 'America/Los_Angeles', assignees: ['@emmercm'], reviewers: ['@emmercm'], assignAutomerge: false, // default // Open PRs immediately for vulnerability alerts // Requires "dependency graph" as well as Dependabot "alerts" and "security updates" enabled for the repo vulnerabilityAlerts: { labels: ['security'], platformAutomerge: true, // Renovate's defaults for `vulnerabilityAlerts` groupName: '', schedule: [], dependencyDashboardApproval: false, minimumReleaseAge: '', rangeStrategy: 'update-lockfile', commitMessageSuffix: '[SECURITY]', branchTopic: '{{{datasource}}}-{{{depName}}}-vulnerability', prCreation: 'immediate', }, // WARN: "When the lockfileVersion is higher than 1 in package-lock.json, remediations are only possible when changes are made to package.json." transitiveRemediation: true, // Use pseudo semantic commit (and therefore PR title) commit messages // "{{{commitMessagePrefix}}} {{{commitMessageAction}}} {{{commitMessageTopic}}} {{{commitMessageExtra}}} {{{commitMessageSuffix}}}" commitMessagePrefix: 'Chore:', commitMessageAction: 'update', // Separate potentially breaking updates, group others separateMultipleMajor: true, separateMajorMinor: true, // default separateMinorPatch: false, // default // Allow auto-merging of PRs, but reduce their spam on the commit log schedule: 'on the 27th day of the month', prCreation: 'immediate', // default prHourlyLimit: 0, // no limit automerge: true, platformAutomerge: true, // default // Rely on the `.github/workflows/gh-merge-queue.yml` workflow to manage rebasing rebaseWhen: 'never', rebaseLabel: 'renovate/rebase', updateNotScheduled: true, // default // Stability settings: don't raise a PR until a dependency is at least 3 days old rangeStrategy: 'pin', minimumReleaseAge: '3 days', internalChecksFilter: 'strict', packageRules: [ // Update Node.js versions immediately { matchPackageNames: ['node'], groupName: 'Node.js', // Keep Node.js on the 'current' major version (as opposed to LTS) allowedVersions: '/^v?\\d*[02468]\\./', // The Docker images (used to build executables) frequently don't get published until days // after the Node.js version was updated, so try to prevent immediately failing PRs minimumReleaseAge: '5 days', // Renovate's defaults for these options (overrides our global defaults) schedule: 'at any time', }, // Group any/all package files in the docs/ directory { matchFileNames: ['docs/**'], groupName: 'docs dependencies', }, // Perform dependency pinning immediately { matchUpdateTypes: ['pin', 'pinDigest'], commitMessageAction: 'pin', groupName: 'version ranges', // Renovate's defaults for these options (overrides our global defaults) schedule: 'at any time', recreateWhen: 'always', }, // Perform version rollbacks immediately { matchUpdateTypes: ['rollback'], // Renovate's defaults for these options (overrides our global defaults) schedule: 'at any time', recreateWhen: 'always', }, // Perform major version updates immediately { matchUpdateTypes: ['major'], // Renovate's defaults for these options (overrides our global defaults) schedule: 'at any time', }, ], "github-actions": { packageRules: [ // Don't update some non-action packages { matchDepNames: ['python'], enabled: false, }, // Pin actions to their digest hashes, remembering the semver in a comment { // helpers:pinGitHubActionDigests matchDepTypes: ['action'], pinDigests: true, // helpers:pinGitHubActionDigestsToSemver extractVersion: '^(?v?\\d+\\.\\d+\\.\\d+)$', versioning: 'regex:^v?(?\\d+)(\\.(?\\d+)\\.(?\\d+))?$', }, // Disable automatic merging of major action version updates -- these don't get tested programmatically { matchDepTypes: ['action'], matchUpdateTypes: ['major'], automerge: false, }, // Group non-major actions updates together { matchDepTypes: ['action'], matchUpdateTypes: ['patch', 'minor'], groupName: 'GitHub Actions', schedule: 'on the 26th day of the month', } ] }, npm: { lockFileMaintenance: { // These options are required to override the `lockFileMaintenance` defaults enabled: true, schedule: 'on the 28th day of the month', // one day after the above, to de-conflict commitMessageAction: 'update', // same as above commitMessageTopic: 'lockfile', }, packageRules: [ // Dependencies { // Group dependencies and their `@types/*` packages together groupName: 'dependencies', matchDepTypes: ['dependencies', 'devDependencies'], // Only group non-major updates matchUpdateTypes: ['patch', 'minor'], }, { matchDepTypes: ['dependencies', 'devDependencies'], // Be strict about Node.js version compatability (from package's `engines.node`) constraintsFiltering: 'strict', rollbackPrs: true, rollback: { prPriority: -10, }, }, // Update chdman, dolphin-tool, maxcso immediately { groupName: null, matchPackageNames: [ 'chdman', 'dolphin-tool', 'maxcso' ], schedule: 'at any time', minimumReleaseAge: '0 hours' }, // Dev dependencies { // Group devDependencies together, minus type definitions for dependencies // https://github.com/renovatebot/renovate/issues/519 groupName: 'dev dependencies', matchDepTypes: ['devDependencies'], excludePackageNames: [ '@types/async', '@types/cli-progress', '@types/graceful-fs', '@types/micromatch', '@types/semver', '@types/xml2js', '@types/yargs', ], // Only group non-major updates matchUpdateTypes: ['patch', 'minor'] }, { // Group ESLint together so files can be fixed automatically matchPackagePatterns: [ 'typescript-eslint', '^@typescript-eslint', '^eslint', ], groupName: 'ESLint', // Only group non-major updates matchUpdateTypes: ['patch', 'minor'] }, { // Update TypeScript-related ESLint more frequently so that TypeScript can update matchPackagePatterns: [ 'typescript-eslint', '^@typescript-eslint/', ], matchUpdateTypes: ['major', 'minor'], schedule: 'at any time', }, { // Group Jest together because of peerDependencies matchPackageNames: [ '@jest/globals', '@types/jest', 'jest', 'ts-jest', ], groupName: 'Jest', // Only group non-major updates matchUpdateTypes: ['patch', 'minor'] }, { // Separate TypeScript because upgrades are dependent on support by other dependencies (e.g. ESLint) matchPackageNames: ['typescript'], groupName: 'TypeScript', prPriority: -20, schedule: 'at any time', }, // Everything else { matchDepTypes: ['optionalDependencies', 'peerDependencies', 'engines'], enabled: false, } ] } }