Home of the Renovate CLI: Cross-platform Dependency Automation by Mend.io
Find a file
Rhys Arkins cf870a862e Support changelogs
Closes #23
2017-01-11 19:32:45 +01:00
src Support changelogs 2017-01-11 19:32:45 +01:00
.eslintrc.js Use Winston for logging 2017-01-11 10:05:42 +01:00
.gitignore Large refactor of config and helpers 2017-01-11 13:19:59 +01:00
package.json Support changelogs 2017-01-11 19:32:45 +01:00
README.md Update description 2017-01-11 14:45:00 +01:00
renovate.js Refactor to improve structure and readability 2017-01-11 14:33:32 +01:00

renovate

Keep npm dependencies up-to-date via Pull Requests

Before you Start

To run this script, you will need to select a GitHub account for it to use. The account will need read/write access to push and update upgrade branches to GitHub, as well as raise Pull Requests.

We recommend using a "bot" account so that it's clear to other users of the repository that these are automated actions and not a team member performing them all manually.

The script will need a GitHub "access token" for authenticating API access. 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 exposed via the environment variable RENOVATE_TOKEN.

Running the Script

To run the script from the command line, you will need Node.js version 6 or greater.

First, install dependencies for this script by running npm install.

The script can then be run like this:

node src <username>/<repo> <path to package.json>

The <path to package.json> argument is optional, and is only needed if your package.json is located somewhere other than the root of the repository.

Example of running with default package.json location:

node src singapore/renovate

Example of running with a custom package.json location:

node src singapore/renovate containers/build/package.json

Note: as mentioned above, you need to expose the environment variable RENOVATE_TOKEN. One way of doing it is like this:

RENOVATE_TOKEN=JDSUW284HSJDSFKSUS22942H2H15KK node src singapore/renovate