|
1 | 1 | module.exports = { |
2 | | - branches: ['main'], |
| 2 | + branches: ["main"], |
3 | 3 | plugins: [ |
4 | 4 | [ |
5 | | - '@semantic-release/commit-analyzer', |
| 5 | + "@semantic-release/commit-analyzer", |
6 | 6 | { |
7 | 7 | parserOpts: { |
8 | | - noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING'], |
| 8 | + noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"], |
9 | 9 | }, |
10 | | - preset: 'angular', |
| 10 | + preset: "angular", |
11 | 11 | releaseRules: [ |
12 | | - { breaking: true, release: 'major' }, |
13 | | - { release: 'patch', type: 'chore' }, |
14 | | - { release: 'patch', type: 'ci' }, |
15 | | - { release: 'patch', type: 'refactor' }, |
16 | | - { release: 'patch', type: 'style' }, |
| 12 | + { breaking: true, release: "major" }, |
| 13 | + { release: "patch", type: "chore" }, |
| 14 | + { release: "patch", type: "ci" }, |
| 15 | + { release: "patch", type: "refactor" }, |
| 16 | + { release: "patch", type: "style" }, |
17 | 17 | ], |
18 | 18 | }, |
19 | 19 | ], |
20 | 20 | [ |
21 | | - '@semantic-release/release-notes-generator', |
| 21 | + "@semantic-release/release-notes-generator", |
22 | 22 | { |
23 | 23 | parserOpts: { |
24 | | - noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING'], |
| 24 | + noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"], |
25 | 25 | }, |
26 | | - preset: 'conventionalcommits', |
| 26 | + preset: "conventionalcommits", |
27 | 27 | presetConfig: { |
28 | 28 | types: [ |
29 | | - { hidden: false, section: 'Build System', type: 'build' }, |
30 | | - { hidden: false, section: 'Build System', type: 'chore' }, |
31 | | - { hidden: false, section: 'Continuous Integration', type: 'ci' }, |
32 | | - { hidden: false, section: 'Documentation', type: 'docs' }, |
33 | | - { hidden: false, section: 'Features', type: 'feat' }, |
34 | | - { hidden: false, section: 'Bug Fixes', type: 'fix' }, |
| 29 | + { hidden: false, section: "Build System", type: "build" }, |
| 30 | + { hidden: false, section: "Build System", type: "chore" }, |
| 31 | + { hidden: false, section: "Continuous Integration", type: "ci" }, |
| 32 | + { hidden: false, section: "Documentation", type: "docs" }, |
| 33 | + { hidden: false, section: "Features", type: "feat" }, |
| 34 | + { hidden: false, section: "Bug Fixes", type: "fix" }, |
35 | 35 | { |
36 | 36 | hidden: false, |
37 | | - section: 'Performance Improvements', |
38 | | - type: 'perf', |
| 37 | + section: "Performance Improvements", |
| 38 | + type: "perf", |
39 | 39 | }, |
40 | | - { hidden: false, section: 'Code Refactoring', type: 'refactor' }, |
41 | | - { hidden: false, section: 'Styles', type: 'style' }, |
42 | | - { hidden: false, section: 'Tests', type: 'test' }, |
| 40 | + { hidden: false, section: "Code Refactoring", type: "refactor" }, |
| 41 | + { hidden: false, section: "Styles", type: "style" }, |
| 42 | + { hidden: false, section: "Tests", type: "test" }, |
43 | 43 | ], |
44 | 44 | }, |
45 | 45 | writerOpts: { |
46 | | - commitsSort: ['subject', 'scope'], |
| 46 | + commitsSort: ["subject", "scope"], |
47 | 47 | }, |
48 | 48 | }, |
49 | 49 | ], |
50 | 50 | [ |
51 | | - '@semantic-release/exec', |
| 51 | + "@semantic-release/exec", |
52 | 52 | { |
53 | 53 | // HINT: Make sure that the changed files are part of the 'assets' property in @semantic-release/git |
54 | | - verifyReleaseCmd: "sed -i 's/version-.*-blue/version-${nextRelease.version.replace(/-/g, '--')}-blue/g' README.md", |
| 54 | + verifyReleaseCmd: |
| 55 | + "sed -i 's/version-.*-blue/version-${nextRelease.version.replace(/-/g, '--')}-blue/g' README.md", |
55 | 56 | }, |
56 | 57 | ], |
57 | 58 | [ |
58 | | - '@semantic-release/changelog', |
| 59 | + "@semantic-release/changelog", |
59 | 60 | { |
60 | | - changelogFile: 'CHANGELOG.md', |
61 | | - changelogTitle: '# Changelog', |
| 61 | + changelogFile: "CHANGELOG.md", |
| 62 | + changelogTitle: "# Changelog", |
62 | 63 | }, |
63 | 64 | ], |
64 | 65 | [ |
65 | | - '@semantic-release/git', |
| 66 | + "@semantic-release/git", |
66 | 67 | { |
67 | | - assets: ['CHANGELOG.md', 'README.md'], |
68 | | - message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}', |
| 68 | + assets: ["CHANGELOG.md", "README.md"], |
| 69 | + message: "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}", |
69 | 70 | }, |
70 | 71 | ], |
71 | | - '@semantic-release/github', |
| 72 | + "@semantic-release/github", |
72 | 73 | ], |
73 | 74 | }; |
0 commit comments