-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrelease.config.js
37 lines (37 loc) · 1 KB
/
release.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
/* eslint-disable no-template-curly-in-string */
/**
* Docs
* @see https://github.com/semantic-release/semantic-release/blob/1d1b52a7dc02e63c41308f4d196983e0b5081e51/docs/usage/configuration.md
* @see https://github.com/semantic-release/semantic-release/blob/1d1b52a7dc02e63c41308f4d196983e0b5081e51/docs/recipes/github-actions.md
*/
module.exports = {
branches: ['main'],
tagFormat: '${version}',
plugins: [
// verify commits
[
'@semantic-release/commit-analyzer',
{
preset: 'conventionalcommits',
},
],
// generate release notes
[
'@semantic-release/release-notes-generator',
{
preset: 'conventionalcommits',
},
],
// generate CHANGELOG.md
[
'@semantic-release/changelog',
{
changelogTitle: '# nextjs-template Changelog',
},
],
// publish a new release on github
'@semantic-release/github',
// commit release assets to the project's git repository.
'@semantic-release/git',
],
}