typebot.io/.github/workflows
Baptiste Arnaud 9d2d7ead8e
🔧 Restore OpenAPI docs generation pipeline (#2553)
## Summary

- Restores OpenAPI docs generation, lost in the oRPC migration: new
`generate-openapi` nx targets regenerate
`apps/docs/openapi/{builder,viewer}.json` offline from the oRPC routers,
reusing the exact options served by the live `/api/openapi.json`
endpoints. Both specs are regenerated in this PR (builder.json was stale
since March).
- Fixes spec generation crashing on the spaces router (Effect Schema had
no JSON Schema converter — this also breaks the live builder
`/api/openapi.json` today) and sanitizes an `AppendValue(s)` component
name that made Mintlify silently render every builder API page empty.
- Keeps the docs from going stale again: pre-commit regenerates affected
specs and auto-stages them, CI fails PRs with stale specs, and a new
check requires lockstep `@typebot.io/js` / `@typebot.io/react` version
bumps whenever embed files change.

## Test plan

- [x] `bunx nx generate-openapi builder viewer` produces valid OpenAPI
3.1 files matching the live endpoints (works without env: isolated-vm
stubbed, dummy DATABASE_URL auto-matched to the generated Prisma client)
- [x] All 34 `openapi:` references in `apps/docs/api-reference/*.mdx`
resolve against the new specs; pages verified rendering in `mintlify
dev` (params, unions, curl samples)
- [x] Embeds version check: fails when js or react files change without
both bumps, passes on the historical 0.10.5 bump commit, ignores
unrelated changes
- [x] Pre-commit pipeline (lint, tests, generation, embeds check) passes
end to end
- [ ] Confirm the "Check OpenAPI docs are up to date" step passes on
this PR

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 20:19:08 +02:00
..
auto-approve.yml 🔧 Auto-approve owner PRs (#2369) 2026-01-25 08:01:58 +01:00
auto-create-tags.yml 🔧 Update GitHub Actions workflow to use CONTENTS_RW_PAT for GITHUB_TOKEN 2025-05-02 17:26:27 +02:00
check-embeds-version-bump.yml 🔧 Restore OpenAPI docs generation pipeline (#2553) 2026-07-03 20:19:08 +02:00
daily.yml 🐛 Fix code scanning findings 2026-03-19 10:21:03 +01:00
deploy-partykit.yml 🐛 Fix PartyKit deploy workflow gate (#2500) 2026-05-21 15:11:51 +00:00
deploy-workflows.yml 🐛 Fix code scanning findings 2026-03-19 10:21:03 +01:00
hourly.yml 🐛 Fix code scanning findings 2026-03-19 10:21:03 +01:00
monthly.yml 🐛 Fix code scanning findings 2026-03-19 10:21:03 +01:00
publish-typebot-js.yml 🐛 Fix code scanning findings 2026-03-19 10:21:03 +01:00
publish-typebot-react.yml 🐛 Fix code scanning findings 2026-03-19 10:21:03 +01:00
release.yml 🔧 Migrate deprecated buildjet arm runner 2026-02-11 10:37:03 +01:00
stale.yml 🐛 Fix code scanning findings 2026-03-19 10:21:03 +01:00
typecheck.yml 🔧 Restore OpenAPI docs generation pipeline (#2553) 2026-07-03 20:19:08 +02:00