https://github.com/posthook/cli
https://www.npmjs.com/package/posthook
-
Bump the version (updates
package.jsonand creates a git tag):npm version patch # or minor / major -
Run tests:
npm test -
Publish to npm:
npm publish
-
Push the commit and tag:
git push origin main --tags
-
Create GitHub release (optional):
gh release create vX.Y.Z --title "vX.Y.Z" --notes "Release notes here"
- npm account with publish access to the
posthookpackage - Logged in via
npm login
Follow semver:
- Patch (1.0.x): Bug fixes, doc updates
- Minor (1.x.0): New features, backward-compatible changes
- Major (x.0.0): Breaking API changes