Ready to Provide a solution to Publishing to NPM
hardog opened this issue · comments
hardog commented
@HiFaraz is there other aspect should pay attention to except criteria for accepting a solution., step by step guide to publish to npm is my idea!
Faraz commented
Nope, although I recommend you post a summary here first for discussion.
Thank you !
hardog commented
- check the module whether published by others
- register npmjs account
- create a dir and npm init
- execute npm publish cmd
- check your module whether published
above is the gist, when push the PR, it would be more detail!
Faraz commented
Sounds good, couple of points:
- npm init is already covered in the basic workflow, don't need to address this again
- you can't publish without changing the version number, so the workflow should mention upping the version (either patch, minor, or major - add a link to the version numbering section)