cli: copy the README before publishing to npm

Merged
TR
2d ago
+3-0

Refs #850 (this PR does not close it — the issue closes with the release).

publish-npm-cli builds and publishes packages/cli without ever creating packages/cli/README.md. files lists README.md, but npm silently skips missing entries, so @cortexkit/magic-context ships with no README and the npm page shows "No README data found!" (confirmed on 0.49.37: npm view @cortexkit/magic-context readme errors).

This mirrors what publish-npm already does for @cortexkit/opencode-magic-context: copy the repo README into the package right before npm publish.

Verification

Simulated the step locally (cp README.md packages/cli/README.md + npm pack --dry-run --json) — the tarball now contains README.md:

"files": [
  { "path": "README.md", "size": 34931, "mode": 420 },
  { "path": "package.json", "size": 1772, "mode": 420 }
]

Also ran bun test packages/e2e-tests/scripts/ci-workflow.test.ts (13 pass), which parses both workflows.

Note: npm captures the README at publish time, so the npm page only updates from the next release onward.

RetriggerView in GreptileConfidence Score: 5/5

This PR appears safe to merge.

Summary

Copies the root README.md into packages/cli before publishing to npm.

  • The CLI package now ships its README with npm releases.

Reviews (2) · Last reviewed commit: "cli: copy the README before publishing t..." · Reviewed by Greptile