Skip to content

Commit 7f47326

Browse files
authored
Merge pull request #10 from dkmaker/publish-fix
ci: add release rules to ensure all commit types trigger version bump
2 parents 33c6e36 + 8a93006 commit 7f47326

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed
Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
module.exports = {
22
types: [
3-
{ type: 'feat', section: 'Features' },
4-
{ type: 'fix', section: 'Bug Fixes' },
5-
{ type: 'chore', section: 'Maintenance' },
6-
{ type: 'docs', section: 'Documentation' },
7-
{ type: 'style', section: 'Styling' },
8-
{ type: 'refactor', section: 'Code Refactoring' },
9-
{ type: 'perf', section: 'Performance' },
10-
{ type: 'test', section: 'Testing' },
11-
{ type: 'ci', section: 'CI/CD' },
12-
{ type: 'build', section: 'Build System' }
3+
{ type: 'feat', section: 'Features', hidden: false },
4+
{ type: 'fix', section: 'Bug Fixes', hidden: false },
5+
{ type: 'chore', section: 'Maintenance', hidden: false },
6+
{ type: 'docs', section: 'Documentation', hidden: false },
7+
{ type: 'style', section: 'Styling', hidden: false },
8+
{ type: 'refactor', section: 'Code Refactoring', hidden: false },
9+
{ type: 'perf', section: 'Performance', hidden: false },
10+
{ type: 'test', section: 'Testing', hidden: false },
11+
{ type: 'ci', section: 'CI/CD', hidden: false },
12+
{ type: 'build', section: 'Build System', hidden: false }
13+
],
14+
releaseRules: [
15+
{ type: 'feat', release: 'minor' },
16+
{ type: 'fix', release: 'patch' },
17+
{ type: 'perf', release: 'patch' },
18+
{ type: 'chore', release: 'patch' },
19+
{ type: 'docs', release: 'patch' },
20+
{ type: 'style', release: 'patch' },
21+
{ type: 'refactor', release: 'patch' },
22+
{ type: 'test', release: 'patch' },
23+
{ type: 'ci', release: 'patch' },
24+
{ type: 'build', release: 'patch' }
1325
]
1426
};

0 commit comments

Comments
 (0)