From 6f03a5c5c017d5513b68db3ea0201d989b103e3d Mon Sep 17 00:00:00 2001 From: Frederic BIDON Date: Fri, 31 Jul 2026 21:36:39 +0200 Subject: [PATCH] ci: release codescan as the mono-repo it now is MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding cmd/genspec-tui made this a multi-module repository, but the release workflows still called the single-module shared workflows. go-test.yml had already been switched to go-test-monorepo.yml; the release pair had not. bump-release.yml now calls bump-release-monorepo.yml. Beyond tagging every module rather than only the root, that workflow rewrites each submodule's `require` on the root module to the version being cut, opens a pull request with those go.mod changes, and waits for it to merge before it tags — so a submodule published from this repo names a real release of the library instead of whatever stale version it happened to carry. The job therefore needs pull-requests:write in addition to contents:write. The switch is not a one-way door: the mono-repo workflow opens with a module-detection job and delegates to the single-module path when it finds only one module. tag-release.yml passes is-monorepo, which makes the release job generate release notes per module instead of one changelog for the whole repository. Both stay on the ci-workflows v0.4.2 pin already used by go-test.yml. Follows go-openapi/core, which is on the same pin with the same shape. Note the mono-repo release will also rewrite the `require` in docs/examples and fixtures, which pin v0.0.0 behind a replace today. That is expected, and harmless: both are internal modules that nothing outside this repository imports. Signed-off-by: Frederic BIDON --- .github/workflows/bump-release.yml | 3 ++- .github/workflows/tag-release.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bump-release.yml b/.github/workflows/bump-release.yml index 32eba2c6..dd5bae77 100644 --- a/.github/workflows/bump-release.yml +++ b/.github/workflows/bump-release.yml @@ -30,7 +30,8 @@ jobs: bump-release: permissions: contents: write - uses: go-openapi/ci-workflows/.github/workflows/bump-release.yml@20153976c20b55ce3289b6f9cf36c7149d3f1fff # v0.4.2 + pull-requests: write + uses: go-openapi/ci-workflows/.github/workflows/bump-release-monorepo.yml@20153976c20b55ce3289b6f9cf36c7149d3f1fff # v0.4.2 with: bump-type: ${{ inputs.bump-type }} tag-message-title: ${{ inputs.tag-message-title }} diff --git a/.github/workflows/tag-release.yml b/.github/workflows/tag-release.yml index a353a07c..8d2aa703 100644 --- a/.github/workflows/tag-release.yml +++ b/.github/workflows/tag-release.yml @@ -16,4 +16,5 @@ jobs: uses: go-openapi/ci-workflows/.github/workflows/release.yml@20153976c20b55ce3289b6f9cf36c7149d3f1fff # v0.4.2 with: tag: ${{ github.ref_name }} + is-monorepo: 'true' secrets: inherit