Release npm packages on Github
It is basically used for managing dependencies of various server side dependencies. We can manages our server side dependencies manually as well but once our project’s dependencies grow it becomes difficult to install and manage. Read more about what is npm?
In the other hand we have Github, which most of you have heard about. Github is a web-based hosting service for version control using Git. It is mostly used for computer code. It offers all of the distributed version control and source code management functionality of Git as well as adding its own features.
Most of the npm packages are open source hosted on GitHub. So every time you drop a new NPM package version does GitHub get updated?
No, neither Github or NPM update automatically your brand new node package version. So that’s why I decided to automatize my node modules. So that’s how GITHUB-NPM was born.
The best thing about Github-NPM is that it is pretty simple to use and straightforward. To use it, just type on your terminal:
$ npx install github-npm <version>
- Publish the package to npm.
- Since npm change the version value on your
package.jsongithub-npm add and commit to master branch your untracked files.
- github-npm create a new tag and push the created tag to Github.
Believe me github-npm makes me save a lot of time. You should try it 😉 !