Better npm publish
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitignore
README.md
package.json
pmm.sh

README.md

pmm

npm license github-issues commitizen friendly

Better npm publish

Features

  • Ensures the working directory is clean and that there are no unpulled changes
  • Runs your checks before publishing via npm scripts
  • Bumps the package version and creates git tag
  • Publishes new version to npm
  • Pushes commits and tags to GitHub
  • Confirm before publishing
  • Verbose release info after publishing

publish my module

Install

npm install -g pmm

Usage

pmm [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease] [<npmtag>]
# default version: patch
# default npm tag: latest

If you define "pmm:prepare" script in package.json it will be run before every publish. Also you can use prepublish or preversion npm scripts to run checks before publishing.

Author

Stanislav Sysoev d4rkr00t@gmail.com https://github.com/d4rkr00t

License

Contributing

Contributing are highly welcome! This repos is commitizen friendly — please read about it here.