Skip to content

Commit

Permalink
feat(renovate-config): add renovate config
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepolischuk committed Apr 24, 2024
1 parent 8530b92 commit 06d1319
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Rambler team configurations for linters, formatters and tools
* [ESLint](packages/eslint-config)
* [License Lint](packages/licenselint-config)
* [Prettier](packages/prettier-config)
* [Renovate Bot](packages/renovate-config)
* [Semantic Release](packages/semantic-release-config)
* [StyleLint](packages/stylelint-config)
* [TypeScript](packages/ts-config)
Expand Down
24 changes: 24 additions & 0 deletions packages/renovate-config/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Shared [Renovate Bot](https://docs.renovatebot.com) config

## Install

```
npm install -D @rambler-tech/renovate-config
```

or

```
yarn add -D @rambler-tech/renovate-config
```

## Usage

Create a **renovate.json** and extend this config.

```json
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": "@rambler-tech/renovate-config"
}
```
21 changes: 21 additions & 0 deletions packages/renovate-config/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"minimumReleaseAge": "3 days",
"reviewersFromCodeOwners": true,
"packageRules": [
{
"matchUpdateTypes": ["patch"],
"addLabels": ["dependencies", "patch"],
"automerge": true
},
{
"matchUpdateTypes": ["minor"],
"addLabels": ["dependencies", "minor"],
"automerge": true
},
{
"matchUpdateTypes": ["major"],
"addLabels": ["dependencies", "major"]
}
]
}
10 changes: 10 additions & 0 deletions packages/renovate-config/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "@rambler-tech/renovate-config",
"version": "0.0.0",
"main": "default.json",
"license": "MIT",
"sideEffects": false,
"publishConfig": {
"access": "public"
}
}

0 comments on commit 06d1319

Please sign in to comment.