Trigger a skill-sync when the SDK is published - #232
Merged
Conversation
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/sdk@0.8.39-pr.232.affea8aPrefer not to change any import paths? Install using npm alias so your code still imports npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.39-pr.232.affea8a"Or add it to your {
"dependencies": {
"@base44/sdk": "npm:@base44-preview/sdk@0.8.39-pr.232.affea8a"
}
}
Preview published to npm registry — try new features instantly! |
yardend-wix
marked this pull request as ready for review
July 15, 2026 08:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Yarden Danan · Slack thread
Before: the
base44-sdkskill inbase44/skillsonly refreshed when the CLI released. Publishingbase44/javascript-sdktriggered nothing, so the SDK skill drifted out of date. (The skills repo already has async-sdk-skillworkflow waiting on ansdk-releasedispatch — nothing was ever sending it.)After: publishing the SDK through its manual publish workflow now also notifies
base44/skills, which kicks off thesync-sdk-skilljob and opens a skill-update PR — exactly what a CLI release already does.How
Edited
.github/workflows/manual-publish.yml(the release path), mirroringbase44/cli's equivalent:Notify skills repostep (last step of thepublishjob, after the git tag is pushed and the release is created) that sends arepository_dispatch(peter-evans/repository-dispatch@v4) tobase44/skillswithevent-type: sdk-releaseandclient-payload{"version": "v${{ env.NEW_VERSION }}", "release_name": "..."}—versionis the only field the skills sync workflow reads (it uses it as the checkout ref), and it matches the v-prefixed git tag the job creates.owner: base44to the existingactions/create-github-app-token@v2step (idgenerate-token) so the minted token is org-scoped and allowed to dispatch to another repo (the CLI sets this; the SDK didn't).notify_skills_repoinput (defaulttrue) and gated the step on it plus non-dry-run, matching the CLI.NEW_VERSIONenv var (already written to$GITHUB_ENVby the version-bump steps, so${{ env.NEW_VERSION }}resolves here) — no export needed. Omittedrelease_urlsince the release step exposes no referenceable URL output and the skills receiver doesn't read it.BASE44_GITHUB_ACTIONS_APP_PRIVATE_KEY/BASE44_GITHUB_ACTIONS_APP_ID) — no new secret needed.Generated by Claude Code