-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathrelease.config.cjs
50 lines (48 loc) · 1.12 KB
/
release.config.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
// @ts-check
/** @type {import('semantic-release').Options} */
const config = {
branches: [
'main',
{ name: 'beta', prerelease: true },
{ name: 'alpha', prerelease: true },
],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'conventionalcommits',
},
],
// if the github action freezes
// on this step, comment it out for
// the release as there is likely
// something causing it to fail
//
// it should work again after
[
'@semantic-release/release-notes-generator',
{
preset: 'conventionalcommits',
},
],
// set package.json version based on commits then publish
'@semantic-release/npm',
[
// commits the changed files to git
'@semantic-release/git',
{
assets: ['package.json', 'README.md'],
},
],
// creates the github release
'@semantic-release/github',
[
'@qiwi/semantic-release-gh-pages-plugin',
{
msg: 'docs: update docs to <%= nextRelease.gitTag %>',
branches: [['beta', 'docs']],
},
],
],
};
module.exports = config;