🚀 yarn-outdated-notifier
Add link to CHANGELOG the result of
$ yarn outdated
, and notify to GitHub Issue.
Example Issue
Issue URL: https://github.com/tsuyoshiwada/yarn-outdated-notifier-with-circleci/issues/2
Motivation
yarn-outdated-notifier
will help you update the npm package on which you depend.
1. Keeping fresh package
yarn
has a useful toolset for updating npm packages like yarn outdated
and yarn upgrade-interactive
.
Utilize these tool sets to visualize packages that need updating and register them to GitHub Issue.
2. Understand the changes
The problem with updating the npm package is that unintended changes destroy the project. By checking CHANGELOG prepared by each package, it is possible to solve this problem to a certain extent.
Therefore, yarn-outdated-notifier
adds a link to CHANGELOG to the result of yarn outdated
and notifies.
Since CircleCI and TravisCI have the function of cron, you can use it to make periodic package update notifications 🎉
Installation
$ yarn add -D yarn-outdated-notifier
Usage
Please access the page of Personal access tokens and issue a token. You need the scope of repo
.
By passing the issued token to the --api-token
option and executing the command, we will inform GitHub's Issue of the result of $ yarn outdated
.
$ yarn outdated-notifier --help Add link to CHANGELOG the result of `$ yarn outdated`, and notify to GitHub Issue. USAGE: $ outdated-notifier [options] OPTIONS: --api-token API token
Prepare the CHANGELOG link
Please create a YAML file with the package name and the link to CHANGELOG in the format shown below and specify it in the --changelogs
option. (e.g. changelogs.yml
)
react: https://github.com/facebook/react/blob/master/CHANGELOG.mdlodash: https://github.com/lodash/lodash/wiki/Changelogmoment: https://github.com/moment/moment/blob/develop/CHANGELOG.md...
Thanks
Contribute
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request 💌
Bugs, feature requests and comments are more than welcome in the issues.