Skip to content

ci(platform): sync asyncapi.json from production every week - #318

Closed
amitbardos wants to merge 1 commit into
amitb/platform-asyncapi-syncfrom
amitb/platform-asyncapi-workflow
Closed

amitbardos wants to merge 1 commit into
amitb/platform-asyncapi-syncfrom
amitb/platform-asyncapi-workflow

Conversation

@amitbardos

@amitbardos amitbardos commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #313. Split out of #313 so the docs and getSession there don't wait on a workflow review.

What

.github/workflows/sync-asyncapi.yml runs weekly on Mondays at 06:00 UTC and on workflow_dispatch:

  1. It runs npm run sync:asyncapi against https://app.base44.com/api/asyncapi.json, then gen:events.
  2. If packages/platform/asyncapi.json or builder.events.generated.ts changed, it runs create-docs and npm test for the Platform SDK.
  3. It opens or updates one rolling PR on bot/platform-asyncapi-sync. The branch is rebuilt from main on every run, so it never conflicts.
  4. When nothing changed, it closes a leftover sync PR.

It uses only what the repo already uses: the pinned actions/checkout and actions/setup-node, the mandatory Wix gateway proxy, and the runner's gh. No new dependencies. CI checks the proxy step with check_wix_proxy_steps.py (check-wix-proxy.yml).

Before merging

base44-dev/apper#29607 is deployed: production serves the full document, and it's identical to the asyncapi.json committed in #313, so a run today finds no diff. After merging, trigger the workflow once by hand.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

🚀 Package Preview Available!


Install this PR's preview build with npm:

npm i @base44-preview/sdk@0.8.53-pr.318.d8cd2bb

Prefer not to change any import paths? Install using npm alias so your code still imports @base44/sdk:

npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.53-pr.318.d8cd2bb"

Or add it to your package.json dependencies:

{
  "dependencies": {
    "@base44/sdk": "npm:@base44-preview/sdk@0.8.53-pr.318.d8cd2bb"
  }
}

Preview published to npm registry — try new features instantly!

@amitbardos
amitbardos force-pushed the amitb/platform-asyncapi-workflow branch 2 times, most recently from b7fee6d to 1ecd050 Compare October 11, 2026 12:51
@amitbardos
amitbardos force-pushed the amitb/platform-asyncapi-sync branch from 1110603 to d589164 Compare October 12, 2026 13:55
@amitbardos
amitbardos force-pushed the amitb/platform-asyncapi-workflow branch 2 times, most recently from 3669ae4 to e2bcf4a Compare October 12, 2026 14:07
@amitbardos
amitbardos force-pushed the amitb/platform-asyncapi-sync branch from 43c68a6 to ffc290a Compare October 12, 2026 14:16
@amitbardos
amitbardos force-pushed the amitb/platform-asyncapi-workflow branch from e2bcf4a to 009f298 Compare October 12, 2026 14:16
A weekly workflow (and workflow_dispatch) fetches
https://app.base44.com/api/asyncapi.json, regenerates the event types, builds
the docs and runs the Platform SDK tests, and opens or updates one rolling PR
on bot/platform-asyncapi-sync only when asyncapi.json or the generated types
changed. It closes that PR when main already matches production.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@amitbardos
amitbardos force-pushed the amitb/platform-asyncapi-sync branch from ffc290a to c6d7478 Compare October 12, 2026 14:19
@amitbardos
amitbardos force-pushed the amitb/platform-asyncapi-workflow branch from 009f298 to 95678d9 Compare October 12, 2026 14:19
@amitbardos

Copy link
Copy Markdown
Contributor Author

Folded into #313: production already serves the full AsyncAPI document, so the workflow no longer needs to wait.

@amitbardos amitbardos closed this Oct 12, 2026
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