Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 909 Bytes

File metadata and controls

54 lines (34 loc) · 909 Bytes

Releasing posthook CLI

Release repo

https://github.com/posthook/cli

Registry

https://www.npmjs.com/package/posthook

Steps

  1. Bump the version (updates package.json and creates a git tag):

    npm version patch   # or minor / major
  2. Run tests:

    npm test
  3. Publish to npm:

    npm publish
  4. Push the commit and tag:

    git push origin main --tags
  5. Create GitHub release (optional):

    gh release create vX.Y.Z --title "vX.Y.Z" --notes "Release notes here"

Prerequisites

  • npm account with publish access to the posthook package
  • Logged in via npm login

Versioning

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