Skip to content

Commit 220ef33

Browse files
committed
chore(release): do not exclude docs directory from CLI release commits (#7162)
1 parent 945427e commit 220ef33

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

release-please-config.json

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
".": {
4040
"package-name": "",
4141
"exclude-paths": [
42-
"docs",
4342
"smoke-tests",
4443
"mock-globals",
4544
"mock-registry",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"packages": {
3+
"{{ pkgPath }}": {
4+
{{#if isRoot}}
5+
"exclude-paths": [
6+
"smoke-tests",
7+
"mock-globals",
8+
"mock-registry",
9+
"workspaces"
10+
]
11+
{{/if}}
12+
}
13+
}
14+
}

scripts/template-oss/root.js

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
const releasePleaseConfig = {
2+
'release-please-config.json': {
3+
file: 'release-please-config-json.hbs',
4+
overwrite: false,
5+
filter: (p) => p.config.isPublic,
6+
parser: (p) => p.JsonMergeNoComment,
7+
},
8+
}
9+
110
module.exports = {
211
rootModule: {
312
add: {
@@ -16,6 +25,7 @@ module.exports = {
1625
'.github/workflows/ci.yml': 'ci-yml.hbs',
1726
'.github/workflows/create-node-pr.yml': 'create-node-pr-yml.hbs',
1827
'.github/workflows/node-integration.yml': 'node-integration-yml.hbs',
28+
...releasePleaseConfig,
1929
},
2030
},
2131
workspaceRepo: {
@@ -26,6 +36,7 @@ module.exports = {
2636
'.github/workflows/post-dependabot.yml': false,
2737
'.github/workflows/release.yml': false,
2838
'.github/workflows/pull-request.yml': false,
39+
...releasePleaseConfig,
2940
},
3041
},
3142
workspaceModule: {

0 commit comments

Comments
 (0)