Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 2.52 KB

CONTRIBUTING.md

File metadata and controls

39 lines (25 loc) · 2.52 KB

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue before making a change.

Pull Request Process

This NPM package is published by semantic-release. In order to make it work you need to follow conventional commit format when writing your commit messages. To make this process easier you can use interactive CLI tool commitizen.

Commitizen

Install commitizen:

npm install -g commitizen

Commit your changes with commitizen. Instead of running git commit start commitizen:

cz

Release

semantic-release uses the commit messages to determine the consumer impact of changes in the codebase. Following formalized conventions for commit messages, semantic-release automatically determines the next semantic version number, generates a changelog and publishes the release.

By default, semantic-release uses Angular Commit Message Conventions. The commit message format can be changed with the preset or config options of the @semantic-release/commit-analyzer and @semantic-release/release-notes-generator plugins.

The table below shows which commit message gets you which release type when semantic-release runs (using the default configuration):

Commit message Release type
fix(pencil): stop graphite breaking when too much pressure applied Patch Fix Release
feat(pencil): add 'graphiteWidth' option Minor Feature Release
perf(pencil): remove graphiteWidth option

BREAKING CHANGE: The graphiteWidth option has been removed
Major Breaking Release
chore(pencil): don't bother publishing Release not triggered