1.0.1 • Published 5 years ago

@leandroconte/npm-ps-release v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

npm-ps-release

Command line tool for generating new releases and snapshot releases for npm projects.

How to install

npm install -g @leandroconte/npm-ps-release

How to use

Run the following command to release a new version.

npm-ps-release

This command will generate two versions for the package.json, in a nutshell: 1. Increase minor number of the actual version. 2. Commit and create a tag for this version using npm version command line. 3. Generate a SNAPSHOT version in package.json and commit.

For instance:

The actual version is 1.0.1-SNAPSHOT. After running npm-ps-release, the version in package.json will result in 1.0.2-SNAPSHOT. On git, it will create two commits:

  • new release 1.0.1
  • new release 1.0.2-SNAPSHOT

Also, it will create a new tag 'v1.0.1' and push it.

Options

You can set three different scripts on package.json to run when generating a new release:

  • post-version: After generates a new release number, commit and push.
  • post-ps-release: After pushing the tag and before generate the snapshot release.
  • post-ps-pre-release: After generates the snapshot release, commit and push.