Socket
Socket
Sign inDemoInstall

standard-version

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

standard-version

replacement for `npm version` with automatic CHANGELOG generation


Version published
Weekly downloads
388K
decreased by-15.22%
Maintainers
1
Weekly downloads
 
Created

Package description

What is standard-version?

The standard-version npm package is a utility for versioning and changelog generation based on conventional commits. It automates the process of updating the version number in your package.json file, generating a changelog, and creating a new Git tag.

What are standard-version's main functionalities?

Version Bumping

This command will bump the version in your package.json file based on the conventional commits in your repository. It will also create a new Git tag for the release.

npx standard-version

Changelog Generation

This command will generate a changelog based on the conventional commits and bump the version as a minor release. The changelog will be updated with the new changes.

npx standard-version --release-as minor

Pre-release Versioning

This command will bump the version to a pre-release version (e.g., 1.0.0-beta.0) and update the changelog accordingly.

npx standard-version --prerelease beta

Custom Release Types

This command allows you to specify a custom version number for the release, overriding the automatic version bump based on conventional commits.

npx standard-version --release-as 1.1.0

Other packages similar to standard-version

Changelog

Source

1.1.0 (2016-04-08)

Features

  • cli: use conventional default commit message with version (9fadc5f)
  • rebrand: rebrand recommended-workflow to standard-version (#9) (1f673c0)
  • tests: adds test suite, fixed several Node 0.10 issues along the way (03bd86c)

<a name="1.0.0"></a>

Readme

Source

Standard Version

Build Status NPM version Coverage Status Standard Version

stop using npm version, use standard-version it does so much more:

Automatic release and CHANGELOG management, using GitHub's new squash button and the workflow outlined in conventional-changelog-cli.

how it works:

  1. when you land commits on your master branch, select the Squash and Merge option.
  2. add a title and body that follows the conventional-changelog conventions.
  3. when you're ready to release to npm:
  4. checkout master.
  5. run standard-version.
  6. git push --tags; git push origin master; npm publish.

standard-version does the following:

  1. bumps the version in package.json (based on your commit history).
  2. runs conventional-changelog and updates CHANGELOG.md.
  3. commits package.json and CHANGELOG.md.
  4. tags a new release.

Initial CHANGELOG.md Generation

When you're generating your changelog for the first time, simply do:

standard-version --first-release

Installation

npm i standard-version

Automating

Do this:

npm i standard-version --save-dev

Add this to your package.json

{
  "scripts": {
    "release": "standard-version"
  }
}

Badges!

Tell your users that you adhere to the standard-version commit guidelines:

[![Standard Version](https://img.shields.io/badge/standard-version-brightgreen.svg)](https://github.com/conventional-changelog/standard-version)

License

ISC

Keywords

FAQs

Package last updated on 08 Apr 2016

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc