task: Automate external distribution repo publishing [202605012125-PXYEPC]#736
Conversation
…,workflow] (#737) Scope: ci, release, workflow Verify: External distribution publishing automation verified. Key files: scripts/publish-external-distribution.mjs, packages/agentplane/src/commands/release/publish-external-distribution-script.test.ts, .github/workflows/publish.yml, packages/agentplane/src/commands/release/publish-workflow-contract.test.ts Co-authored-by: DEUS <deus@agentplane.org>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6ac506a658
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| return { | ||
| module: String(flags.module ?? "").trim(), | ||
| repo: String(flags.repo ?? "").trim(), | ||
| sourceDir: path.resolve(repoRoot, String(flags.source ?? "")), |
There was a problem hiding this comment.
Require raw --source instead of resolved fallback
parseArgs resolves --source with path.resolve(repoRoot, String(flags.source ?? "")), so omitting --source produces a non-empty path (repoRoot) and bypasses the required-argument check in publishExternal. In that case the script can copy from the repository root instead of failing fast, which can publish unintended files to external repos if a caller forgets or drops --source during workflow edits.
Useful? React with 👍 / 👎.
Task:
202605012125-PXYEPCTitle: Automate external distribution repo publishing
Summary
Automate external distribution repo publishing
Publish Homebrew, Scoop, and setup-agentplane outputs to their external repositories from the release workflow when credentials are configured.
Scope
Verification
Handoff Notes
agentplane pr note ...to append one.Raw evidence