|
1 | 1 | export const config = { |
2 | 2 | branches: ['main'], |
3 | 3 | plugins: [ |
4 | | - ['@semantic-release/commit-analyzer', { |
5 | | - 'preset': 'conventionalcommits', |
6 | | - 'releaseRules': [ |
7 | | - { 'type': 'docs', 'scope': 'README', 'release': 'minor' }, |
8 | | - { 'type': 'refactor', 'release': 'minor' }, |
9 | | - { 'type': 'style', 'release': 'minor' }, |
10 | | - { 'type': 'chore', 'release': 'minor' }, |
11 | | - { 'type': 'fix', 'release': 'minor' }, |
12 | | - { 'type': 'feat', 'release': 'minor' }, |
| 4 | + [ |
| 5 | + '@semantic-release/commit-analyzer', |
| 6 | + { |
| 7 | + preset: 'conventionalcommits', |
| 8 | + releaseRules: [ |
| 9 | + { type: 'docs', scope: 'README', release: 'minor' }, |
| 10 | + { type: 'refactor', release: 'minor' }, |
| 11 | + { type: 'style', release: 'minor' }, |
| 12 | + { type: 'chore', release: 'minor' }, |
| 13 | + { type: 'fix', release: 'minor' }, |
| 14 | + { type: 'feat', release: 'minor' }, |
13 | 15 | ], |
14 | | - 'parserOpts': { |
15 | | - 'noteKeywords': ['BREAKING CHANGE', 'BREAKING CHANGES'] |
16 | | - } |
17 | | - }], |
| 16 | + parserOpts: { |
| 17 | + noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES'], |
| 18 | + }, |
| 19 | + }, |
| 20 | + ], |
18 | 21 | '@semantic-release/release-notes-generator', |
19 | 22 | [ |
20 | | - "@semantic-release/changelog", |
| 23 | + '@semantic-release/changelog', |
| 24 | + { |
| 25 | + changelogFile: 'CHANGELOG.md', |
| 26 | + }, |
| 27 | + ], |
| 28 | + '@semantic-release/npm', |
| 29 | + [ |
| 30 | + '@semantic-release/git', |
21 | 31 | { |
22 | | - "changelogFile": "CHANGELOG.md" |
23 | | - } |
| 32 | + assets: ['CHANGELOG.md', 'dist/**', 'package.json'], |
| 33 | + message: |
| 34 | + 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}', |
| 35 | + }, |
24 | 36 | ], |
25 | | - ["@semantic-release/git", { |
26 | | - "assets": [ |
27 | | - "CHANGELOG.md", |
28 | | - "dist/**", |
29 | | - "package.json", |
30 | | - ], |
31 | | - "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" |
32 | | - }], |
33 | | - '@semantic-release/github' |
34 | | - ] |
| 37 | + '@semantic-release/github', |
| 38 | + ], |
35 | 39 | }; |
0 commit comments