Skip to content

ci(cli): publish ts docs reference - #6253

Open
7ttp wants to merge 4 commits into
developfrom
chore/publish-cli-reference
Open

ci(cli): publish ts docs reference#6253
7ttp wants to merge 4 commits into
developfrom
chore/publish-cli-reference

Conversation

@7ttp

@7ttp 7ttp commented Aug 18, 2026

Copy link
Copy Markdown
Member

TL;DR

fixes the CLI docs reference being frozen at v2.98.2
which was caused by the monorepo merge deleting the Go bumpdoc docs job from the release workflow,
and is now fixed by a stable-only docs job that regenerates the spec from the TS command tree and delivers it to supabase/supabase the same way bumpdoc did...

whats introduced?

  • a docs job in release.yml: stable releases only, runs after publish, non-blocking for the release, and mints the same scoped App token...
  • scripts/publish-docs-spec.ts: reads the generated spec on stdin, validates it
    (clispec 001, version match, command count) before any network action, formats it with a pinned prettier to match the published file's style, then updates the cli/ref-doc branch in supabase/supabase and opens a PR when none is open..
  • bumpdoc's append semantics: when cli/ref-doc already exists the new spec lands as a commit on top, so fixes pushed onto an open bot PR survive later releases
  • 6 integration tests for the publisher's refusal and dry-run paths, plus a README release section describing the automated flow

how?

stable release now runs generate-docs-spec.ts "$VERSION" | publish-docs-spec.ts --version "$VERSION"
which lands a validated, formatted spec as a commit on cli/ref-doc and opens the
familiar chore: update cli reference doc PR for the docs team to merge

will follow up on supabase/supabase with a spec-to-sidebar coverage guard,
so a new command missing a common-cli-sections.json entry fails the bot PR instead of silently publishing no page...

ref:

@7ttp
7ttp requested a review from a team as a code owner August 18, 2026 21:11
@7ttp 7ttp self-assigned this Aug 18, 2026
@7ttp 7ttp changed the title ci(cli): restore cli reference publishing ci(cli): publish ts docs reference Aug 18, 2026
@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Supabase CLI preview

npx --yes https://pkg.pr.new/supabase/cli/supabase@da7b4c453fa384fc410925a31d5c82e1f34d4d14

Preview package for commit da7b4c4.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 573b364862

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/cli/scripts/publish-docs-spec.ts
Comment thread apps/cli/scripts/publish-docs-spec.e2e.test.ts
Comment thread apps/cli/scripts/publish-docs-spec.ts Outdated
Comment thread apps/cli/scripts/publish-docs-spec.ts Outdated
@7ttp
7ttp requested a review from avallete August 19, 2026 08:52
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