This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.releaserc.js
44 lines (43 loc) · 2.48 KB
/
.releaserc.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
module.exports = {
branches: ['master', { name: 'development', prerelease: true }],
tagFormat: '${version}',
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
'@semantic-release/github',
['@semantic-release/npm', { npmPublish: false }],
[
'@semantic-release/git',
{
assets: ['CHANGELOG.md', 'package.json', 'package-lock.json'],
},
],
'semantic-release-export-data',
],
// use https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-conventionalcommits
// release rules: https://github.com/semantic-release/commit-analyzer/blob/master/lib/default-release-rules.js
preset: 'conventionalcommits',
// git emoji obtained from
// https://gist.github.com/parmentf/035de27d6ed1dce0b36a
// https://github.com/caiyongji/emoji-list
// https://github.com/pvdlg/conventional-changelog-metahub#commit-types
// preset config for generating release notes and changelogs
// https://github.com/conventional-changelog/conventional-changelog-config-spec/blob/master/versions/2.0.0/README.md#type
// prettier-ignore
presetConfig: {
types: [
{ type: "feat", section: ":sparkles: Features", hidden: false }, // MINOR
{ type: "fix", section: ":bug: Bug Fixes", hidden: false }, // PATCH
{ type: "perf", section: ":zap: Performance Improvements", hidden: false }, // PATCH
{ type: "revert", section: ":rewind: Reverts", hidden: true }, // NO_RELEASE
{ type: "docs", section: ":books: Documentation", hidden: true }, // NO_RELEASE
{ type: "style", section: ":lipstick: Styles", hidden: true }, // NO_RELEASE
{ type: "chore", section: ":octopus: Miscellaneous Chores", hidden: true }, // NO_RELEASE
{ type: "refactor", section: ":recycle: Code Refactoring", hidden: true }, // NO_RELEASE
{ type: "test", section: ":white_check_mark: Tests", hidden: true }, // NO_RELEASE
{ type: "build", section: ":package: Build System", hidden: true }, // NO_RELEASE
{ type: "ci", section: ":construction_worker: Continuous Integration", hidden: true }, // NO_RELEASE
],
},
};