-
Notifications
You must be signed in to change notification settings - Fork 0
/
.releaserc.cjs
59 lines (56 loc) · 1.62 KB
/
.releaserc.cjs
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
54
55
56
57
58
59
module.exports = {
// https://github.com/semantic-release/semantic-release/blob/master/docs/extending/plugins-list.md
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'conventionalcommits',
},
],
[
'@semantic-release/release-notes-generator',
{
preset: 'conventionalcommits',
},
],
// disabled due to authentication https://github.com/semantic-release/git#git-authentication
[
'@semantic-release/changelog',
{
changelogTitle: `<!-- markdownlint-disable MD001 MD004 MD012 MD024 -->
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).`,
},
],
[
'@semantic-release/exec',
{
prepareCmd: 'npm ci && npm run build',
},
],
[
'@semantic-release/npm',
{
npmPublish: true,
},
],
[
'@semantic-release/git',
{
message: 'chore(release): ${nextRelease.version} ${nextRelease.notes}',
assets: ['CHANGELOG.md', 'package.json', 'package-lock.json'],
},
],
[
'@semantic-release/github',
{
successComment:
":tada: This ${issue.pull_request ? 'pull request' : 'issue'} is included in [version ${nextRelease.version}](${releases.filter(release => /github.com/i.test(release.url))[0].url}) :tada:",
assets: ['*.tgz'],
},
],
],
tagFormat: '${version}',
branches: [{ name: 'master' }],
};