Skip to content
Snippets Groups Projects
readme.md 2.43 KiB
Newer Older
Rhys Arkins's avatar
Rhys Arkins committed
# renovate

Keep npm dependencies up-to-date.

[![codecov](https://codecov.io/gh/singapore/renovate/branch/master/graph/badge.svg)](https://codecov.io/gh/singapore/renovate)
Rhys Arkins's avatar
Rhys Arkins committed

singapore's avatar
singapore committed
## Why
Rhys Arkins's avatar
Rhys Arkins committed

-   Creates or updates Pull Requests for each dependency that needs updating
-   Discovers and processes all `package.json` files in repository (supports monorepo architecture)
-   Supports multiple major versions per-dependency at once
-   Configurable via file, environment, CLI, and `package.json`
-   Supports `yarn.lock` and `package-lock.json` files
-   Supports GitHub and GitLab
-   Open source and can be self-hosted
Rhys Arkins's avatar
Rhys Arkins committed

singapore's avatar
singapore committed
## GitHub App

Renovate is now available as a free GitHub "App". Go to [https://github.com/apps/renovate](https://github.com/apps/renovate) to enable it now.
Rhys Arkins's avatar
Rhys Arkins committed
## Install
Rhys Arkins's avatar
Rhys Arkins committed

Rhys Arkins's avatar
Rhys Arkins committed
```
$ npm install -g renovate
```
Rhys Arkins's avatar
Rhys Arkins committed

Rhys Arkins's avatar
Rhys Arkins committed
## Authentication
Rhys Arkins's avatar
Rhys Arkins committed

Rhys Arkins's avatar
Rhys Arkins committed
You need to select a repository user for `renovate` to assume the identity of, and generate a Personal Access Token. It's recommended that you use a dedicated "bot" account for this to avoid user confusion.
Rhys Arkins's avatar
Rhys Arkins committed

You can find instructions for GitHub [here](https://help.github.com/articles/creating-an-access-token-for-command-line-use/) (select "repo" permissions)
You can find instructions for GitLab [here](https://docs.gitlab.com/ee/api/README.html#personal-access-tokens).
Rhys Arkins's avatar
Rhys Arkins committed

Rhys Arkins's avatar
Rhys Arkins committed
This token needs to be configured via file, environment variable, or CLI. See [docs/configuration.md](docs/configuration.md) for details.
Rhys Arkins's avatar
Rhys Arkins committed
The simplest way is to expose it as `GITHUB_TOKEN` or `GITLAB_TOKEN`.
Rhys Arkins's avatar
Rhys Arkins committed

Rhys Arkins's avatar
Rhys Arkins committed
## Usage
Rhys Arkins's avatar
Rhys Arkins committed

Run `renovate --help` for usage details.
Rhys Arkins's avatar
Rhys Arkins committed
Note: The first time you run `renovate` on a repository, it will not upgrade any dependencies. Instead, it will create a Pull Request (Merge Request if GitLab) called 'Configure Renovate' and commit a default `renovate.json` file to the repository. This PR can be close unmerged if the default settings are fine for you. Also, this behaviour can be disabled if you set the `onboarding` configuration option to `false` before running.
Rhys Arkins's avatar
Rhys Arkins committed

## Deployment

See [deployment docs](https://github.com/singapore/renovate/blob/master/docs/deployment.md) for details.

## Configuration

The [Configuration](https://github.com/singapore/renovate/blob/master/docs/configuration.md) and [Configuration FAQ](https://github.com/singapore/renovate/blob/master/docs/faq.md) documents should be helpful.
Rhys Arkins's avatar
Rhys Arkins committed
## Design Decisions
See [design decisions doc](https://github.com/singapore/renovate/blob/master/docs/design-decisions.md) for details.