Skip to content

ci(api-docs): add fork-safe PR preview workflow - #242

Closed
twishabansal wants to merge 1 commit into
api-docs-per-package-isolationfrom
api-docs-preview
Closed

ci(api-docs): add fork-safe PR preview workflow#242
twishabansal wants to merge 1 commit into
api-docs-per-package-isolationfrom
api-docs-preview

Conversation

@twishabansal

@twishabansal twishabansal commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a separate, fork-safe API Reference Preview workflow so docs changes can be reviewed before merging — without deploying anything or exposing secrets.

  • Triggers on pull_request touching docs-site/**, scripts/generate-*.sh, the workflow itself, or README.md; plus workflow_dispatch for previewing any change (e.g. package source) on demand.
  • permissions: contents: read and plain pull_request (not pull_request_target) — runs in the untrusted fork context with no secret access, safe for external contributors.
  • Builds all three packages at dev + the root page with BASE_URL="/" (root-relative, self-contained), uploads docs-site/public as the api-docs-preview artifact (7-day retention), and prints view instructions to the job summary.

@twishabansal
twishabansal requested a review from a team as a code owner June 2, 2026 08:02
@twishabansal
twishabansal marked this pull request as draft June 2, 2026 08:02
@twishabansal twishabansal added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Indicates a pull request not ready for merge, due to either quality or timing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants