ci(publish): publish @agent-relay/fleet in the release pipeline#1138
Conversation
The root CLI depends on @agent-relay/fleet, so publish-main's "Wait for CLI
internal dependencies" loop blocks on @agent-relay/fleet@<version>. But fleet
was never wired into the publish workflow, so on the all-package release it is
never published and the wait times out:
Timed out waiting for CLI @agent-relay/* dependencies:
- @agent-relay/fleet@8.8.0
Add a publish-fleet job that runs after publish-harnesses (fleet pins
@agent-relay/{harnesses,harness-driver,sdk} by exact version, so it must land
after harnesses to avoid an install-resolution race), and add it to
publish-main's needs/if so the root package is only published once fleet is on
the registry.
Note: @agent-relay/fleet@8.7.2 was a manual token publish (no provenance), so
its npm Trusted Publisher must be configured for OIDC `npm publish --provenance`
to succeed on the next release.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA new Changespublish-fleet job and publish-main gating
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Problem
The Publish Package workflow (run 27600505024) failed twice in Publish Main Package:
The root
agent-relayCLI now depends on@agent-relay/fleet, sopublish-main's "Wait for CLI internal dependencies" step (which derives its list frompackages/cli/package.json's@agent-relay/*deps) blocks on@agent-relay/fleet@<bumped version>. Butfleetwas never added to the publish workflow, so on the all-package release nothing publishes it → the wait loop (12×10s) times out.Fix
Add a
publish-fleetjob that:publish-harnesses—fleetpins@agent-relay/{harnesses,harness-driver,sdk}by exact version, so it must land afterharnessesto avoid the same install-resolution race the broker/sdk/harnesses ordering already guards against;if: package == 'all'(mirrorspublish-harnesses);--provenancelike every other package.Wire it into
publish-main'sneeds+ifso the root tarball is only published oncefleetis on the registry.@agent-relay/fleet@8.7.2was a manual token publish (no provenance attestations), so the package has no npm Trusted Publisher configured. This workflow publishes via OIDC (id-token: write+--provenance, noNODE_AUTH_TOKENanywhere), so the newpublish-fleetjob will fail auth until the Trusted Publisher for@agent-relay/fleetis added on npmjs.com → Package settings → Trusted Publishing → GitHub Actions → repoAgentWorkforce/relay, workflowpublish.yml.Validation
actionlintclean (no new findings).publish-fleetdefined, referenced inpublish-mainneeds+if.npm publish --dry-runforpackages/fleetpacks cleanly (6 files:dist/+ README + package.json).Follow-up (not in this PR)
The
main/cli-prereleaserelease path (publish-main-runtime-deps) also doesn't publishfleet(or itsharnessesdep). It's a less-common path and was already incomplete for fleet; worth covering separately if those paths are used.🤖 Generated with Claude Code