Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

incrementor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

incrementor

This is a simple package to increment and release versions to git in a project's `package.json` file based on [Semver](https://semver.org/).

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Incrementor

This is a simple package to increment and release versions to git in a project's package.json file based on Semver.

Installation

NPM: npm install --save-dev incrementor

Yarn: yarn add incrementor --dev

Usage

In your project's package.json file, add an entry to scripts:

"scripts": {
  "release": "incrementor"
}

Make changes and commits as you normally would, then:

npm run release -- patch "* Big improvements" "* Maximum performance"

Or, for Yarn:

yarn release patch "* Big improvements" "* Maximum performance"

That's it! Incrementor will:

  • Increase the version in package.json
  • Commit the change with the version number as the first line of the message
    • Optionally: add any further lines to the commit message
  • Tag the commit as the new version
  • Push your changes and new tag

Important Note!

If you git checkout a new branch and don't have changes on a remote, this process will fail.

FAQs

Package last updated on 25 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc