From 77fa1502bf9236de79aaf6a9610b46f70bf5c99e Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Fri, 19 Jan 2024 11:21:33 -0700 Subject: [PATCH] chore(release): do not exclude docs directory from CLI release commits (#7162) --- release-please-config.json | 1 - .../template-oss/release-please-config-json.hbs | 14 ++++++++++++++ scripts/template-oss/root.js | 11 +++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 scripts/template-oss/release-please-config-json.hbs diff --git a/release-please-config.json b/release-please-config.json index 98e7f50ba4caf..c672b155ac1cc 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -39,7 +39,6 @@ ".": { "package-name": "", "exclude-paths": [ - "docs", "smoke-tests", "mock-globals", "mock-registry", diff --git a/scripts/template-oss/release-please-config-json.hbs b/scripts/template-oss/release-please-config-json.hbs new file mode 100644 index 0000000000000..d3b59ea7227cd --- /dev/null +++ b/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}} + } + } +} diff --git a/scripts/template-oss/root.js b/scripts/template-oss/root.js index ff8a67b578103..fb2d964a3f993 100644 --- a/scripts/template-oss/root.js +++ b/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: { @@ -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: { @@ -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: {