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

conventional-release-setup

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conventional-release-setup

Sets up package for committing/releasing with conventional commits.

  • 1.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

conventional-release-setup

NPM

NPM version Build Status

Sets up an npm package for committing and releasing with conventional commits:

npx conventional-release-setup

Install

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

Explanation

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"
}

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

Lint

Lint files:

npm run lint

Fix lint errors:

npm run lint:fix

Release

Only collaborators with credentials can release and publish:

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

License

MIT

Keywords

FAQs

Package last updated on 16 Feb 2021

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