Fan out release to PyPI, npm, and Homebrew#322
Merged
Conversation
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.
Why
release.ymlbuilds the 4 platform binaries and creates the GitHub Release, then does zero downstream publishing. The oldpublish-python-sdk.yml/publish-node-sdk.yml/update-homebrew.ymlwere deleted after v1.10.5 (#114, #122), so since 2026-05-20 a daemon release reaches none of PyPI / npm / Homebrew. PyPI is stuck at 1.10.5, npm at 1.10.2, the tap formula at 1.10.5.What
Adds a
publish-downstreamjob (needs: release, skipped for-rc/-beta) that fans the current tag's version out to all three channels. Each leg is independent (continue-on-error) so one failing channel doesn't block the others; a final gate step surfaces any failure and fails the job.gh workflow run publish.ymlagainstpilot-protocol/sdk-pythonandpilot-protocol/sdk-nodewith-f version=${TAG#v}. The companion PRs (sdk-python#14, sdk-node#12) add theversioninput + version-pinning so the SDKs publish version-locked to the daemon, not to stale source. Uses a cross-repo PATRELEASE_DISPATCH_TOKEN(a GitHub-Release created byGITHUB_TOKENcannot trigger downstreamon: releaseworkflows, andGITHUB_TOKENhas no scope on sibling repos).update-homebrew.ymllogic inline — downloads this release'schecksums.txt, regeneratesFormula/pilotprotocol.rb, and pushes it toTeoSlayer/homebrew-pilotviaHOMEBREW_TAP_TOKEN.Secrets required (NOT yet present in this repo)
RELEASE_DISPATCH_TOKEN— PAT withrepo+workflowscope, able to dispatch workflows inpilot-protocol/sdk-nodeandpilot-protocol/sdk-python.HOMEBREW_TAP_TOKEN— PAT withrepo(contents:write) onTeoSlayer/homebrew-pilot.NPM_TOKEN/PYPI_API_TOKENalready exist in the SDK repos and are used there.