Skip to content
Snippets Groups Projects
Commit 2ba784d8 authored by Daniel Dehennin's avatar Daniel Dehennin
Browse files

refactor(semantic-release): move rules in main configuration file

Rename the configuration file to hide it by default.
parent 074f9f94
No related branches found
No related tags found
3 merge requests!61Publish new release,!60Prepare new release,!55Resolve "All semantic-release configuration should be in a single file"
......@@ -41,6 +41,21 @@ const commitTypes = [
{type: "test", section: "Tests", hidden: false},
];
const releaseRules = [
{ breaking: true, release: 'major' },
// { type: 'build', release: 'patch'},
// { type: 'chore', release: 'patch'},
// { type: 'ci', release: 'patch'},
{ type: 'docs', release: 'patch' },
{ type: 'feat', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'perf', release: 'patch' },
{ type: 'refactor', release: 'patch' },
{ type: 'revert', release: 'patch' },
{ type: 'style', release: 'patch' },
{ type: 'test', release: 'patch' },
];
const semanticBranches = [stableBranch];
if (betaBranch) {
......@@ -77,7 +92,7 @@ const config = {
{
noteKeywords: breakingKeywords,
},
releaseRules: './release-rules.js',
releaseRules: releaseRules,
presetConfig:
{
types: commitTypes,
......
// No release is triggered for the types commented out below.
// Commits using these types will be incorporated into the next release.
//
// NOTE: Any changes here must be reflected in `CONTRIBUTING.md`.
module.exports = [
{ breaking: true, release: 'major' },
// {type: 'build', release: 'patch'},
// {type: 'chore', release: 'patch'},
// {type: 'ci', release: 'patch'},
{ type: 'docs', release: 'patch' },
{ type: 'feat', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'perf', release: 'patch' },
{ type: 'refactor', release: 'patch' },
{ type: 'revert', release: 'patch' },
{ type: 'style', release: 'patch' },
{ type: 'test', release: 'patch' },
];
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment