File tree 1 file changed +53
-68
lines changed
1 file changed +53
-68
lines changed Original file line number Diff line number Diff line change 1
- const getReleaseConfig = ( pkg , dirname ) => {
2
- const tagName = pkg . name . split ( "/" ) [ 1 ] ;
3
- return {
4
- // We want to publish only single release notes for the core package release config
5
- publish : "@semantic-release/npm" ,
6
- success : false ,
7
- fail : false ,
8
- tagFormat : tagName + "-v${version}" ,
9
- commitPaths : [ `${ dirname } /*` ] ,
10
- branches : [
11
- {
12
- name : "main" ,
13
- } ,
14
- {
15
- name : "beta" ,
16
- prerelease : true ,
17
- } ,
18
- {
19
- name : "alpha" ,
20
- prerelease : true ,
21
- } ,
22
- ] ,
23
- release : {
24
- plugins : [
25
- [
26
- "@semantic-release/commit-analyzer" ,
27
- {
28
- releaseRules : [
29
- {
30
- scope : "no-release" ,
31
- release : false ,
32
- } ,
33
- {
34
- breaking : true ,
35
- release : "major" ,
36
- } ,
37
- {
38
- type : "feat" ,
39
- release : "minor" ,
40
- } ,
41
- {
42
- type : "refactor" ,
43
- scope : "core-*" ,
44
- release : "minor" ,
45
- } ,
46
- {
47
- type : "*" ,
48
- release : "patch" ,
49
- } ,
50
- ] ,
51
- } ,
52
- ] ,
53
- "@semantic-release/release-notes-generator" ,
54
- "@semantic-release/npm" ,
55
- [
56
- "@semantic-release/git" ,
57
- {
58
- assets : [ `${ dirname } /package.json` , `${ dirname } /CHANGELOG.md` ] ,
59
- message :
60
- `release(version): Release ${ pkg . name } ` + "${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" ,
61
- } ,
62
- ] ,
63
- ] ,
64
- } ,
65
- } ;
66
- } ;
67
-
68
1
module . exports = {
69
- getReleaseConfig,
2
+ // We want to publish only single release notes for the core package release config
3
+ publish : "@semantic-release/npm" ,
4
+ success : false ,
5
+ fail : false ,
6
+
7
+ branches : [
8
+ {
9
+ name : "main" ,
10
+ } ,
11
+ {
12
+ name : "beta" ,
13
+ prerelease : true ,
14
+ } ,
15
+ {
16
+ name : "alpha" ,
17
+ prerelease : true ,
18
+ } ,
19
+ ] ,
20
+ release : {
21
+ plugins : [
22
+ [
23
+ "@semantic-release/commit-analyzer" ,
24
+ {
25
+ releaseRules : [
26
+ {
27
+ scope : "no-release" ,
28
+ release : false ,
29
+ } ,
30
+ {
31
+ breaking : true ,
32
+ release : "major" ,
33
+ } ,
34
+ {
35
+ type : "feat" ,
36
+ release : "minor" ,
37
+ } ,
38
+ {
39
+ type : "refactor" ,
40
+ scope : "core-*" ,
41
+ release : "minor" ,
42
+ } ,
43
+ {
44
+ type : "*" ,
45
+ release : "patch" ,
46
+ } ,
47
+ ] ,
48
+ } ,
49
+ ] ,
50
+ "@semantic-release/release-notes-generator" ,
51
+ "@semantic-release/npm" ,
52
+ "@semantic-release/github" ,
53
+ ] ,
54
+ } ,
70
55
} ;
You can’t perform that action at this time.
0 commit comments