-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
nxrelease.config.js
53 lines (53 loc) · 1.42 KB
/
nxrelease.config.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
45
46
47
48
49
50
51
52
53
module.exports = {
changelog: true,
git: true,
npm: true,
github: true,
repositoryUrl: 'https://github.com/minwork/react',
//buildTarget: 'build',
outputPath: 'dist/packages/${PROJECT_NAME}',
tagFormat: '${PROJECT_NAME}-v${VERSION}',
commitMessage: 'chore(release): Release ${PROJECT_NAME} v${nextRelease.version} [skip ci]',
branches: [
{
name: 'main',
channel: 'latest',
},
{
name: 'next',
channel: 'next',
prerelease: 'rc',
},
{
name: 'develop',
channel: 'alpha',
prerelease: 'alpha',
},
],
parserOpts: {
mergePattern: /^Merged in (.*) \(pull request #(\d+)\)$/,
mergeCorrespondence: ['branch', 'id'],
},
releaseRules: [
{ breaking: true, release: 'major' },
{ type: 'docs', release: 'patch' },
{ type: 'refactor', release: 'patch' },
{ type: 'style', release: 'patch' },
{ type: 'perf', release: 'patch' },
{ type: 'build', release: 'patch' },
],
preset: 'conventionalcommits',
presetConfig: {
types: [
{ type: 'feat', section: 'Features' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'chore', hidden: true },
{ type: 'docs', section: 'Documentation' },
{ type: 'style', hidden: true },
{ type: 'refactor', section: 'Refactors' },
{ type: 'build', section: 'Build config' },
{ type: 'perf', hidden: true },
{ type: 'test', hidden: true },
],
},
};