-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.releaserc.js
41 lines (41 loc) · 996 Bytes
/
.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
module.exports = {
verifyConditions: [
'@semantic-release/changelog',
'@semantic-release/git',
'@semantic-release/github',
],
analyzeCommits: {
preset: 'angular',
releaseRules: [
{ type: 'major', release: 'major' },
{ type: 'feat', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'style', release: 'patch' },
],
},
prepare: [
'@semantic-release/changelog',
{
path: '@semantic-release/exec',
cmd: 'npm run prettier CHANGELOG.md',
},
{
path: '@semantic-release/npm',
npmPublish: false,
tarballDir: '.next',
},
{
path: '@semantic-release/git',
assets: ['package.json', 'package-lock.json', 'CHANGELOG.md'],
message: '${nextRelease.version} release [skip ci]',
},
],
publish: [
{
path: '@semantic-release/github',
assets: '.next/*.tgz',
},
],
success: ['@semantic-release/github'],
fail: ['@semantic-release/github'],
};