ci: add pkg.pr.new previews#95
Conversation
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 77ec1a7deb
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
77ec1a7 to
77ca13b
Compare
Related Issue
No linked issue. This PR addresses the need for pull-request preview packages for the Kimi Code CLI without touching the existing npm release workflow.
Problem
Reviewers and downstream testers currently need to wait for the normal release flow before trying a built
@moonshot-ai/kimi-codepackage from an unmerged PR. We want a preview package path that is isolated from npm publishing and scoped only to the CLI package.What changed
pkg.pr.newGitHub Actions workflow for non-draft pull requests.apps/kimi-codeonly.pkg-pr-newas a locked root dev dependency so CI executes it from the lockfile, as recommended by pkg.pr.new.release.ymland npm Trusted Publishing path unchanged.Local validation performed:
pnpm install --frozen-lockfilegit diff --checkpnpm run build:packagesnode apps/kimi-code/scripts/update-catalog.mjs --out /tmp/kimi-code-pkg-pr-new-catalog.jsonKIMI_CODE_BUILT_IN_CATALOG_FILE=/tmp/kimi-code-pkg-pr-new-catalog.json pnpm --filter @moonshot-ai/kimi-code run buildnpm pack --json --pack-destination ... ./apps/kimi-codepkg-pr-new publishrun that verified/check, package URL probing,/publish, and GitHub Actions outputs without sending anything to the real pkg.pr.new serviceChecklist
gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.如何配置
MoonshotAI/kimi-code仓库并授权。.github/workflows/pkg-pr-new.yml会自动构建并发布apps/kimi-code的预览包。--bin,评论里会展示适合 CLI 包的执行方式。pkg.pr.newworkflow。