-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease-rules.js
28 lines (26 loc) · 1.36 KB
/
release-rules.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Sources:
// * /~https://github.com/jy95/torrent-files-library-cli/blob/master/config/release-rules.js
// * /~https://github.com/semantic-release/commit-analyzer/blob/e8c560459d7ef8752180154ed0263ce262aa22a7/lib/default-release-rules.js
// * /~https://github.com/semantic-release/commit-analyzer/blob/fc0f98d41b989f5d3314e2e84c3430d0ca615daf/README.md
// * /~https://github.com/semantic-release/commit-analyzer/blob/2fd449f7927846bb1acd271582ecccca4592c4b7/test/fixtures/release-rules.js
// * /~https://github.com/conventional-changelog/commitlint
// * ...
// * ...
// /~https://github.com/semantic-release/commit-analyzer/blob/master/lib/default-release-types.js
// 'major', 'premajor', 'minor', 'preminor', 'patch', 'prepatch', 'prerelease'
// While nice, leave for now since the analyser checks for the `tagFormat` when looking for bump number
// and doesn't find these `pre...` versions like that (unless there is some regex)
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'},
];