https://github.com/redradix/releases-notifier
Free Heroku worker that sends an email when any dependency of the specified package.jsons releases a major version (also minors for whitelisted packages)
https://github.com/redradix/releases-notifier
Last synced: 3 months ago
JSON representation
Free Heroku worker that sends an email when any dependency of the specified package.jsons releases a major version (also minors for whitelisted packages)
- Host: GitHub
- URL: https://github.com/redradix/releases-notifier
- Owner: redradix
- License: mit
- Created: 2016-01-29T17:36:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-24T10:30:58.000Z (over 9 years ago)
- Last Synced: 2024-04-17T21:07:54.104Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://redradix.com
- Size: 1.46 MB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://heroku.com/deploy)
# Install
- Click on the 'Deploy to Heroku' button on a new tab
- There you can choose a name for your app and the location where it will run
- Then make sure it has automatically selected the add-ons stated below
- Config variables are to be filled in as stated below too (*except for SENDGRID_KEY* and REDISTOGO_URL*)
- Click of 'Deploy for Free'
- Wait for deploy to finish and click on 'Manage app'
- Go to 'Settings' -> 'Reveal config vars' and copy SENDGRID_PASSWORD and SENDGRID_USERNAME
- Go to [sendgrid.com](https://sendgrid.com) and log in with those credentials
- Click on 'Settings' -> 'API Keys' -> 'Create API Key' -> 'General API Key', set the name you want, give it full access to everything, and save
- Copy the generated key and paste it on SENDGRID_KEY, back on Heroku config vars
- Now go to 'Resources', desactivate 'web', and activate 'worker' (*using the pencils and the switchs*)
- Finally click on 'Heroku Scheduler' -> 'Add new job', fill in `node index.js`, frequency the one you want and save### ENV variables needed
- **PACKAGE_JSON_URLS**: comma separated list of github urls to the raw content of the desired package.jsons, e.g. 'https://raw.githubusercontent.com/redradix/releases-notifier/master/package.json'
- **REDISTOGO_URL**: automatically generated by Heroku with the redistogo add-on
- **EMAILS**: comma separated list of emails to send the notification to
- **MINOR_DEPENDENCIES**: comma separated list of packages you want to receive notifications for minor releases too
- **SENDGRID_KEY**: see username and password in 'Settings'-> 'Reveal config vars' (*auto-generated with sendgrid add-on*), go to [sendgrid.com](https://sendgrid.com) and generate API key
- **SENDER_EMAIL**: email direction that sends you the email (*should have a domain whitelisted in Sendgrid*)
- **SENDER_NAME**: name for the email above### Add-ons needed:
- **redistogo**. To keep record of the versions already notified
- **scheduler:standard**. To run the script again and again
- **sendgrid**. To send the emails