Skip to content

Make the post-publish docs-bump PR cover schema assets and @basou/sdk - #48

Merged
takashi-matsuyama merged 2 commits into
mainfrom
ci/docs-bump-completeness
Jun 8, 2026
Merged

takashi-matsuyama merged 2 commits into
mainfrom
ci/docs-bump-completeness

Conversation

@takashi-matsuyama

Copy link
Copy Markdown
Member

Summary

Two fixes to the update-docs-site job in the release pipeline so the
auto-generated basou-site docs-bump PR fully reflects a release. CI-only;
no product code changes.

Why

On a vX.Y.Z tag push this job opens a PR on basou-site that pins the
freshly published @basou packages and regenerates docs with
pnpm gen:docs. Two completeness gaps surfaced on the v0.7.0 release:

  1. Schema assets were dropped. pnpm gen:docs writes two roots: the
    version-coupled mdx under src/content/docs/** and the verbatim JSON
    Schemas served at basou.dev/schemas/ under public/schemas/**. The
    create-pull-request add-paths allowlist only listed src/content/docs,
    so on a schema-changing release the regenerated schema files were left
    unstaged while the mdx that references them was included. basou-site's
    gen:docs:check then failed the build on the drift (the v0.7.0 bump PR
    had to be patched by hand). Fixed by adding public/schemas to all three
    places the allowlist is expressed: the add-paths, the change-detection
    diff, and the outside-allowlist warning exclude.

  2. @basou/sdk was not bumped. The pin covered @basou/core and
    @basou/cli but not @basou/sdk, so basou-site's sdk.mdx (and
    basou.dev/sdk/) reported a stale SDK package version one release
    behind. The SDK read-API version (BASOU_SDK_VERSION) is tracked
    separately and is unaffected. Fixed by adding @basou/sdk to the pinned
    bump and updating the progress messages, PR title/body, and step name.

Checklist

  • Branch is rebased on main (branched from current main HEAD).
  • One commit per topic (schema-asset allowlist; sdk bump).
  • Tests cover the change — N/A. The update-docs-site job runs only on
    a real tag-push publish (its steps are gated to github.event_name == 'push'), so it cannot be exercised by CI or a workflow_dispatch
    dry-run. The next release is the live test. Verified statically with
    actionlint (no new findings vs main) and git-pathspec checks.
  • pnpm lint / pnpm typecheck / pnpm test unaffected (CI-only
    change); quality.yml still passes.
  • CHANGELOG.md — N/A. Internal release-infra, consistent with prior
    ci(release): commits that carried no changelog entry.
  • CLI stderr — N/A.

Related

takashi-matsuyama and others added 2 commits June 8, 2026 15:04
The docs-bump job regenerates basou-site with `pnpm gen:docs`, which
writes two roots: the version-coupled mdx under src/content/docs and the
verbatim JSON Schema artifacts under public/schemas (served at
basou.dev/schemas/). The create-pull-request add-paths allowlist only
listed src/content/docs, so on a release that changes a schema the
regenerated schema files were dropped from the PR while the mdx that
references them was included. basou-site's gen:docs:check then failed the
build on the drifted, unstaged schemas (observed on the v0.7.0 bump PR).

Add public/schemas to all three places the allowlist is expressed: the
create-pull-request add-paths, the change-detection diff, and the
outside-allowlist warning exclude, so schema-changing releases stage the
regenerated artifacts.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The docs-bump job pinned @basou/core and @basou/cli to the released
version but left @basou/sdk untouched, so basou-site's gen:docs read the
SDK package version from a stale @basou/sdk and the generated sdk.mdx
(and basou.dev/sdk/) reported a version one release behind. The SDK
read-API version is separate (BASOU_SDK_VERSION) and is unaffected.

Add @basou/sdk to the pinned bump so the package version shown in the
SDK docs tracks the release, and update the progress messages, PR
title/body, and step name to match.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@takashi-matsuyama
takashi-matsuyama merged commit 914c032 into main Jun 8, 2026
7 checks passed
@takashi-matsuyama
takashi-matsuyama deleted the ci/docs-bump-completeness branch June 8, 2026 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant