Skip to content

Commit

Permalink
chore(release): do not exclude docs directory from CLI release commits (
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Feb 26, 2024
1 parent 1d4c464 commit 77fa150
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
1 change: 0 additions & 1 deletion release-please-config.json
Expand Up @@ -39,7 +39,6 @@
".": {
"package-name": "",
"exclude-paths": [
"docs",
"smoke-tests",
"mock-globals",
"mock-registry",
Expand Down
14 changes: 14 additions & 0 deletions scripts/template-oss/release-please-config-json.hbs
@@ -0,0 +1,14 @@
{
"packages": {
"{{ pkgPath }}": {
{{#if isRoot}}
"exclude-paths": [
"smoke-tests",
"mock-globals",
"mock-registry",
"workspaces"
]
{{/if}}
}
}
}
11 changes: 11 additions & 0 deletions scripts/template-oss/root.js
@@ -1,3 +1,12 @@
const releasePleaseConfig = {
'release-please-config.json': {
file: 'release-please-config-json.hbs',
overwrite: false,
filter: (p) => p.config.isPublic,
parser: (p) => p.JsonMergeNoComment,
},
}

module.exports = {
rootModule: {
add: {
Expand All @@ -16,6 +25,7 @@ module.exports = {
'.github/workflows/ci.yml': 'ci-yml.hbs',
'.github/workflows/create-node-pr.yml': 'create-node-pr-yml.hbs',
'.github/workflows/node-integration.yml': 'node-integration-yml.hbs',
...releasePleaseConfig,
},
},
workspaceRepo: {
Expand All @@ -26,6 +36,7 @@ module.exports = {
'.github/workflows/post-dependabot.yml': false,
'.github/workflows/release.yml': false,
'.github/workflows/pull-request.yml': false,
...releasePleaseConfig,
},
},
workspaceModule: {
Expand Down

0 comments on commit 77fa150

Please sign in to comment.