Skip to content

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

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

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. Merge it after base44-dev/apper#29607 deploys. Split out of #313 so the docs and getSession there don't wait for the deploy.

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

Production serves the events only once base44-dev/apper#29607 deploys. Until then the sync script finds no messages and exits with an error, so a scheduled run fails. After the deploy, run npm run sync:asyncapi locally against production and check that asyncapi.json has no diff. Then merge, and 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.571c999

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.571c999"

Or add it to your package.json dependencies:

{
  "dependencies": {
    "@base44/sdk": "npm:@base44-preview/sdk@0.8.53-pr.318.571c999"
  }
}

Preview published to npm registry — try new features instantly!

@amitbardos
amitbardos force-pushed the amitb/platform-asyncapi-workflow branch from 399cb39 to b7fee6d Compare October 11, 2026 12:47
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-workflow branch from b7fee6d to 1ecd050 Compare October 11, 2026 12:51
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