These are the notes/process I used when developing the Node Reach SDK package:
The “Standard” Release Process
Here is my understanding of the steps that are most commonly expected to be run when publishing a new version of an npm package.
- Safety Checks:
- git pull
- git status
- npm ci
- npm test
- Prepare the Release:
- npm run build
- Update the Changelog
- Update the Version Number:
- npm version
- Or by hand:
- Update version in package.json & package-lock.json
- git commit -am ‘2.0.0’
- git tag v2.0.0
- Publish to npm:
- npm publish
- Publish to Git:
- git push
- git push –tags
- Create a GitHub Release (optional)