forked from mgamer/indexer-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.config.js
39 lines (38 loc) · 1.07 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
38
39
// sequential number 108
const branch = process.env.GITHUB_REF_NAME;
module.exports = {
'dryRun': false,
'branches': [
'main',
{ name: 'development', channel: 'dev', prerelease: 'dev' },
],
'plugins': [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
[
'@semantic-release/changelog',
{
'changelogFile': `docs/CHANGELOG_${branch}.md`,
}
],
['@semantic-release/npm', {
'npmPublish': false,
'pkgRoot': 'packages/indexer/',
}],
// '@semantic-release/github',
[
'@semantic-release/git',
{
'assets': [
`docs/CHANGELOG_${branch}.md`,
'packages/indexer/package.json',
],
'message': 'ci(release): update changelogs for ${nextRelease.version} [skip release][skip ci]'
}
],
['@semantic-release/exec', {
'generateNotes': `git pull origin '+refs/notes/semantic-release:refs/notes/semantic-release'`,
'prepare': `git pull origin '+refs/notes/semantic-release:refs/notes/semantic-release'`,
}]
]
};