Universal dependency update tool that fits into your workflows.
 
 
 
 
 
 
Go to file
Rhys Arkins 19a5cc2696 8.6.3 2017-02-10 12:50:37 +01:00
bin Fix update-docs path 2017-01-31 12:36:22 +01:00
docs Add option to rebase stalled PRs (#89) 2017-02-06 07:56:33 +01:00
lib Drop commitFileToBranch 2017-02-09 06:14:19 +01:00
test Move tests to Jest (#94) 2017-02-09 05:30:00 +01:00
.editorconfig Add editorconfig 2017-01-15 17:23:34 +01:00
.eslintrc.js Use async await (#78) 2017-01-31 12:19:06 +01:00
.gitattributes Add .gitattributes 2017-01-15 17:25:51 +01:00
.gitignore Use async await (#78) 2017-01-31 12:19:06 +01:00
.npmignore Ignore bin 2017-01-20 14:09:57 +01:00
Procfile Fix Procfile 2017-02-01 13:38:36 +01:00
circle.yml Use yarn for renovate repository (#68) 2017-02-10 12:45:16 +01:00
contributing.md Create contributing.md (#86) 2017-02-02 09:26:40 +01:00
license Add license file 2017-01-15 17:27:41 +01:00
package.json 8.6.3 2017-02-10 12:50:37 +01:00
readme.md Add yarn support to readme 2017-02-09 06:01:26 +01:00
yarn.lock Use yarn for renovate repository (#68) 2017-02-10 12:45:16 +01:00

readme.md

renovate

Keep npm dependencies up-to-date

Why

  • 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 files
  • Self-hosted

Install

$ npm install -g renovate

Authentication

You need to select a GitHub user for renovate to assume the identity of. It's recommended that you use a dedicated "bot" account for this to avoid user confusion.

The script will need a GitHub Personal Access Token with "repo" permissions. You can find instructions for generating it here: https://help.github.com/articles/creating-an-access-token-for-command-line-use/

This token needs to be configured via file, environment variable, or CLI. See docs/configuration.md for details. The simplest way is to expose it as GITHUB_TOKEN.

Usage

$ node renovate --help

  Usage: renovate [options] [repositories...]

  Options:

    -h, --help                    output usage information
    --enabled [boolean]           Enable or disable renovate
    --onboarding [boolean]        Require a Configuration PR first
    --platform <string>           Platform type of repository
    --endpoint <string>           Custom endpoint to use
    --token <string>              Repository Auth Token
    --package-files <list>        Package file paths
    --dep-types <list>            Dependency types
    --ignore-deps <list>          Dependencies to ignore
    --ignore-future [boolean]     Ignore versions tagged as "future"
    --ignore-unstable [boolean]   Ignore versions with unstable semver
    --respect-latest [boolean]    Ignore versions newer than npm "latest" version
    --recreate-closed [boolean]   Recreate PRs even if same ones were closed previously
    --rebase-stale-prs [boolean]  Rebase stale PRs
    --labels <list>               Labels to add to Pull Request
    --assignees <list>            Assignees for Pull Request
    --reviewers <list>            Requested reviewers for Pull Requests
    --log-level <string>          Logging level

  Examples:

    $ renovate --token abc123 singapore/lint-condo
    $ renovate --ignore-unstable=false --log-level verbose singapore/lint-condo
    $ renovate singapore/lint-condo singapore/package-test

Note: The first time you run renovate on a repository, it will not upgrade any dependencies. Instead, it will create a PR 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 first disable the onboarding setting before running.

Deployment

See deployment docs for details.

Design Decisions

See design decisions doc for details.