Skip to content

Commit b21027e

Browse files
committed
chore: migrate to Renovate
1 parent e766c23 commit b21027e

4 files changed

Lines changed: 44 additions & 69 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/automerge.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Now just follow the typical steps to [contribute code](https://guides.github.com
2424

2525
- `python scripts/import_and_patch_translators.py` updates all Zotero submodules, post-processes the translators and applies the necessary patches for our extension
2626

27-
The following commands are used to update the dependencies of the project; as we use automatic dependency updates this should not be necessary in most cases, but it is good to know how to do it manually:
27+
The following commands are used to update the dependencies of the project; as we use Renovate for automatic dependency updates this should not be necessary in most cases, but it is good to know how to do it manually:
2828

2929
- `pnpm outdated` gives an overview of outdated packages ([doc](https://pnpm.io/cli/outdated))
3030
- `pnpm update --latest` updates all packages

renovate.json5

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3+
extends: [
4+
"config:best-practices",
5+
":semanticCommitTypeAll(chore)",
6+
// Update lock files: https://docs.renovatebot.com/presets-default/#maintainlockfilesmonthly
7+
":maintainLockFilesMonthly",
8+
// Automerge all updates once they pass tests: https://docs.renovatebot.com/presets-default/#automergeall
9+
":automergeAll",
10+
// Update _VERSION variables in GitHub Action files: https://docs.renovatebot.com/presets-customManagers/#custommanagersgithubactionsversions
11+
"customManagers:githubActionsVersions",
12+
// Pin Github Actions versions: https://docs.renovatebot.com/presets-helpers/#helperspingithubactiondigeststosemver
13+
"helpers:pinGitHubActionDigestsToSemver",
14+
],
15+
schedule: [
16+
// Monthly, but give a 3-day window (due to throttling not all PRs may be created on the same day): https://docs.renovatebot.com/configuration-options/#schedule
17+
"on the 2nd through 5th day of the month",
18+
],
19+
// Always squash PRs: https://docs.renovatebot.com/configuration-options/#automergestrategy
20+
automergeStrategy: "squash",
21+
// Pin all dependencies: https://docs.renovatebot.com/dependency-pinning/
22+
rangeStrategy: "pin",
23+
packageRules: [
24+
{ matchPackageNames: ["*"], matchManagers: ["npm"] },
25+
{
26+
matchManagers: ["docker-compose", "dockerfile"],
27+
groupName: "docker",
28+
},
29+
{
30+
matchManagers: ["devcontainer"],
31+
groupName: "devcontainer",
32+
},
33+
{
34+
matchManagers: ["github-actions"],
35+
groupName: "github-actions",
36+
},
37+
],
38+
"github-actions": { enabled: true },
39+
postUpdateOptions: [
40+
// Always dedupe the lock file after updating dependencies: https://docs.renovatebot.com/configuration-options/#postupdateoptions
41+
"pnpmDedupe",
42+
],
43+
}

0 commit comments

Comments
 (0)