@myparcel/semantic-release-config

5.0.1 • Public • Published

MyParcel semantic-release configuration

npm

This package contains multiple semantic-release presets. Additional information, documentation and guides on semantic-release can be found here

Usage

Install the package via yarn:

yarn add -D @myparcel/semantic-release-config

or npm:

npm i -D @myparcel/semantic-release-config

Create a semantic-release config file, if you haven't already, and add the following: (JavaScript example)

// release.config.js
module.exports = {
  extends: '@myparcel/semantic-release-config',
};

Or to use one of the other available presets:

// release.config.js
module.exports = {
  extends: '@myparcel/semantic-release-config/npm',
};

Configurations

Base config

@myparcel/semantic-release-config

This is the base configuration, which other ones should be based on. For more in-depth information on the configurations used with each plugin, see ./src/plugins/<plugin>.js.

NPM

@myparcel/semantic-release-config/npm

Composer

@myparcel/semantic-release-config/npm

GitHub

@myparcel/semantic-release-config/github

GitHub + Composer

@myparcel/semantic-release-config/github-composer

GitHub + NPM

@myparcel/semantic-release-config/github-npm

Debugging

You can run the following command in your project to test your semantic-release configuration:

npx semantic-release --dry-run --debug --branches=$(git branch --show-current)

Flags used:

  • --dry-run: If this is on, no files are changed and nothing is actually "released".
  • --debug: Enables debug mode to show a lot more output.
  • --branches: Set the current branch as a release branch. If you don't pass this and are not on a release branch semantic-release will not process your commits.

Dependencies (10)

Dev Dependencies (5)

Package Sidebar

Install

npm i @myparcel/semantic-release-config

Weekly Downloads

15

Version

5.0.1

License

MIT

Unpacked Size

22.2 MB

Total Files

601

Last publish

Collaborators

  • myparcel-nl
  • edielemoine
  • mknijnenberg