11module . exports = {
2- tagFormat : 'installer-v${version}' ,
3- branches : [ 'main' ] ,
4- plugins : [
5- [ '@semantic-release/commit-analyzer' , {
6- preset : 'angular' ,
7- releaseRules : [
8- { scope : '!installer' , release : false } ,
9- { scope : 'installer' , type : 'feat' , release : 'minor' } ,
10- { scope : 'installer' , type : 'fix' , release : 'patch' } ,
11- { scope : 'installer' , type : 'perf' , release : 'patch' } ,
12- { scope : 'installer' , type : 'refactor' , release : 'patch' } ,
13- { scope : 'installer' , type : 'chore' , release : 'patch' } ,
14- { scope : 'installer' , type : 'docs' , release : 'patch' } ,
15- { scope : 'installer' , type : 'style' , release : 'patch' } ,
16- { scope : 'installer' , type : 'test' , release : 'patch' } ,
17- { scope : 'installer' , breaking : true , release : 'major' }
18- ] ,
19- parserOpts : {
20- noteKeywords : [ 'BREAKING CHANGE' , 'BREAKING CHANGES' ]
21- }
22- } ] ,
23- [ '@semantic-release/release-notes-generator' , {
24- preset : 'angular' ,
25- parserOpts : {
26- noteKeywords : [ 'BREAKING CHANGE' , 'BREAKING CHANGES' ]
27- } ,
28- writerOpts : {
29- transform : ( commit ) => {
30- // Only include commits with 'installer' scope
31- if ( commit . scope !== 'installer' ) {
32- return false ;
33- }
34- // Clear the scope to prevent it from being displayed
35- commit . scope = null ;
36- return commit ;
37- } ,
38- }
39- } ] ,
40- [ '@semantic-release/github' , {
41- releaseNameTemplate : 'Installer v${nextRelease.version}' ,
42- successComment : false ,
43- assets : [
44- {
45- path : 'release-artifacts/flowfuse-device-installer-linux-amd64'
46- } ,
47- {
48- path : 'release-artifacts/flowfuse-device-installer-linux-arm64'
49- } ,
50- {
51- path : 'release-artifacts/flowfuse-device-installer-linux-arm'
52- } ,
53- {
54- path : 'release-artifacts/flowfuse-device-installer-windows-amd64.exe'
55- } ,
56- {
57- path : 'release-artifacts/flowfuse-device-installer-darwin-amd64'
58- } ,
59- {
60- path : 'release-artifacts/flowfuse-device-installer-darwin-arm64'
61- }
62- ]
63- } ]
64- ]
65- } ;
2+ tagFormat : 'installer-v${version}' , // eslint-disable-line no-template-curly-in-string
3+ branches : [ 'main' ] ,
4+ plugins : [
5+ [ '@semantic-release/commit-analyzer' , {
6+ preset : 'angular' ,
7+ releaseRules : [
8+ { scope : '!installer' , release : false } ,
9+ { scope : 'installer' , type : 'feat' , release : 'minor' } ,
10+ { scope : 'installer' , type : 'fix' , release : 'patch' } ,
11+ { scope : 'installer' , type : 'perf' , release : 'patch' } ,
12+ { scope : 'installer' , type : 'refactor' , release : 'patch' } ,
13+ { scope : 'installer' , type : 'chore' , release : 'patch' } ,
14+ { scope : 'installer' , type : 'docs' , release : 'patch' } ,
15+ { scope : 'installer' , type : 'style' , release : 'patch' } ,
16+ { scope : 'installer' , type : 'test' , release : 'patch' } ,
17+ { scope : 'installer' , breaking : true , release : 'major' }
18+ ] ,
19+ parserOpts : {
20+ noteKeywords : [ 'BREAKING CHANGE' , 'BREAKING CHANGES' ]
21+ }
22+ } ] ,
23+ [ '@semantic-release/release-notes-generator' , {
24+ preset : 'angular' ,
25+ parserOpts : {
26+ noteKeywords : [ 'BREAKING CHANGE' , 'BREAKING CHANGES' ]
27+ } ,
28+ writerOpts : {
29+ transform : ( commit ) => {
30+ // Only include commits with 'installer' scope
31+ if ( commit . scope !== 'installer' ) {
32+ return false
33+ }
34+ // Clear the scope to prevent it from being displayed
35+ commit . scope = null
36+ return commit
37+ }
38+ }
39+ } ] ,
40+ [ '@semantic-release/github' , {
41+ releaseNameTemplate : 'Installer v${nextRelease.version}' , // eslint-disable-line no-template-curly-in-string
42+ successComment : false ,
43+ assets : [
44+ {
45+ path : 'release-artifacts/flowfuse-device-installer-linux-amd64'
46+ } ,
47+ {
48+ path : 'release-artifacts/flowfuse-device-installer-linux-arm64'
49+ } ,
50+ {
51+ path : 'release-artifacts/flowfuse-device-installer-linux-arm'
52+ } ,
53+ {
54+ path : 'release-artifacts/flowfuse-device-installer-windows-amd64.exe'
55+ } ,
56+ {
57+ path : 'release-artifacts/flowfuse-device-installer-darwin-amd64'
58+ } ,
59+ {
60+ path : 'release-artifacts/flowfuse-device-installer-darwin-arm64'
61+ }
62+ ]
63+ } ]
64+ ]
65+ }
0 commit comments