1
1
const { name : NAME , version : LATEST_VERSION } = require ( '../../package.json' )
2
2
3
+ const releasePlease = ( ws = false ) => ( {
4
+ [ `.github/workflows/release-please${ ws ? '-{{pkgNameFs}}' : '' } .yml` ] : {
5
+ file : 'release-please.yml' ,
6
+ filter : ( o ) => ! o . pkg . private ,
7
+ } ,
8
+ '.release-please-manifest.json' : {
9
+ file : 'release-please-manifest.json' ,
10
+ filter : ( o ) => ! o . pkg . private ,
11
+ parser : ( p ) => class NoCommentJson extends p . JsonMerge {
12
+ comment = null
13
+ } ,
14
+ } ,
15
+ 'release-please-config.json' : {
16
+ file : 'release-please-config.json' ,
17
+ filter : ( o ) => ! o . pkg . private ,
18
+ parser : ( p ) => class NoCommentJson extends p . JsonMerge {
19
+ comment = null
20
+ } ,
21
+ } ,
22
+ } )
23
+
3
24
// Changes applied to the root of the repo
4
25
const rootRepo = {
5
26
add : {
@@ -14,10 +35,7 @@ const rootRepo = {
14
35
'.github/workflows/codeql-analysis.yml' : 'codeql-analysis.yml' ,
15
36
'.github/workflows/post-dependabot.yml' : 'post-dependabot.yml' ,
16
37
'.github/workflows/pull-request.yml' : 'pull-request.yml' ,
17
- '.github/workflows/release-please.yml' : {
18
- file : 'release-please.yml' ,
19
- filter : ( o ) => ! o . pkg . private ,
20
- } ,
38
+ ...releasePlease ( ) ,
21
39
} ,
22
40
}
23
41
@@ -43,10 +61,7 @@ const rootModule = {
43
61
// Changes for each workspace but applied to the root of the repo
44
62
const workspaceRepo = {
45
63
add : {
46
- '.github/workflows/release-please-{{pkgNameFs}}.yml' : {
47
- file : 'release-please.yml' ,
48
- filter : ( o ) => ! o . pkg . private ,
49
- } ,
64
+ ...releasePlease ( true ) ,
50
65
'.github/workflows/ci-{{pkgNameFs}}.yml' : 'ci.yml' ,
51
66
} ,
52
67
}
0 commit comments