-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathrelease.config.mjs
More file actions
38 lines (38 loc) · 916 Bytes
/
release.config.mjs
File metadata and controls
38 lines (38 loc) · 916 Bytes
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
/* eslint-disable no-template-curly-in-string */
/**
* @type {import('semantic-release').Options}
*/
export default {
tagFormat: 'v${version}',
branches: ['main'],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
[
'@semantic-release/exec',
{
prepareCmd: 'RELEASE_VERSION=${nextRelease.version} bun run helpers/update-version.ts',
},
],
[
'@semantic-release/git',
{
assets: ['package.json', 'plugin.json', 'CHANGELOG.md'],
message: 'chore: bump version to ${nextRelease.version}\n\n${nextRelease.notes}',
},
],
[
'@semantic-release/exec',
{
publishCmd: './helpers/publish.sh ${nextRelease.version}',
},
],
[
'@semantic-release/github',
{
assets: ['build/*.zip'],
},
],
],
};