There are many different options to get notified on npm package updates. Npm mentions using webhooks and hosting a service, like a slackbot, in their blog post npm web hooks. Here are some other ways that I found that worked with various levels of friction in setup.
🖌️ Renovate
Best and easiest option in my opinion. Renovate will open a PR after package updates and has a ton of awesome config settings. Here I'm checking for updates every monday with automerge in my renovate.json
{
"extends": [
"config:base",
":automergeMinor",
"schedule:weekly"
]
}
Use greenkeeper to automatically open a PR after any new package update. Greenkeeper's pull requests are nice because they include a changelog and sometimes links to the commits. Here are the steps to set it up:
- remove
&& exit 1
from the npm test script inpackage.json
(commit 0cbaa3d) npm install --save
packages you want updates on- add travis-ci in repo settings
- commit something to enable travis
- go to greenkeeper.io and enable it on this repo
- merge greenkeeper's initial commit
- set notifications on your 3rd party github app like iOctocat or GitHawk for PRs
- Greenkeeper does not have the option to auto merge the greenkeeper PRs after a successful travis build. Use kkemple/greenkeeper-keeper to auto merge but note it requires you hosting the service somewhere. Heres a quick deploy link:
Sign into libraries.io with github and have it watch your project. Libraries.io will create an RSS feed of the entire dependency tree. That means this project has a feed of 460 packages instead of just the 13 in my package.json. I recommend not watching this project and just manually selecting subscribe for each package you want email notificaitons on or a collective rss feed from.