11module . exports = {
2- // Define the branches for release.
2+ preset : 'angular' ,
33 branches : [
44 { name : 'main' } ,
55 { name : 'dev' , channel : 'dev' , prerelease : false }
66 ] ,
7- // Map commit types to releases.
8- // Breaks any commit that normally triggers a major bump so that only minor or patch releases occur.
97 releaseRules : [
10- { type : 'major' , release : 'patch' } , // Force breaking changes to become patch releases.
11- { type : 'minor ' , release : 'minor' } ,
12- { type : 'patch ' , release : 'patch' } ,
13- { type : 'fix ' , release : 'patch' }
8+ { type : 'major' , release : 'patch' } ,
9+ { type : 'feat ' , release : 'minor' } ,
10+ { type : 'fix ' , release : 'patch' } ,
11+ { type : 'perf ' , release : 'patch' }
1412 ] ,
15- // Change the tag format. This enforces a 0.x.x version.
1613 tagFormat : '0.${version}' ,
17- // List the plugins to use during the release process.
1814 plugins : [
19- // Analyze commits for changes.
2015 '@semantic-release/commit-analyzer' ,
21- // Generate a changelog.
2216 '@semantic-release/release-notes-generator' ,
23- // Create and publish a new GitHub release.
2417 '@semantic-release/github'
2518 ]
2619 } ;
0 commit comments