Socket
Socket
Sign inDemoInstall

conventional-release-setup

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    conventional-release-setup

Sets up package for committing/releasing with conventional commits.


Version published
Weekly downloads
7
increased by75%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.1.0 (2020-06-05)

Features

  • cli: add files to git and commit changes with message (c878c3d)
  • cli: log exit status code and when script is done (a887f17)
  • cli: set version to 1.0.0-alpha if new package.json initialized (4fb2c10)
  • index: run git commands if working directory is a git repo (14a61d8)
  • index: update package.json version and scripts.release (f51e1ae)

Bug Fixes

  • index: remove backticks in git commit command and tidy logs (040c3c4)

Readme

Source

conventional-release-setup

NPM

NPM version Build Status

A command-line tool for setting up a package for committing and releasing with conventional commits:

npx conventional-release-setup

Installation

To install the package globally:

# with npm
npm install --global conventional-release-setup

# with yarn
yarn global add conventional-release-setup

Usage

If the package is installed globally, you can execute it in the command-line:

conventional-release-setup

Otherwise, you can install and execute the package binary like so:

npx conventional-release-setup

Script

What does the script do?

It updates package.json:

  • appends -alpha to version
  • adds script release

Installs devDependencies:

Copies configs to your project:

Release

If -alpha is appended to your package.json version:

{
  "version": "1.0.0-alpha"
}

Then you can run a release like so:

npm run release # npx standard-version --no-verify

Otherwise, you can release as a target type imperatively:

npx standard-version --release-as 1.0.0

Or if you want to use the current version as your first release:

npx standard-version --first-release

Release

Only collaborators with credentials can release and publish:

npm run release
git push --follow-tags && npm publish

License

MIT

Keywords

FAQs

Last updated on 05 Jun 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc