Skip to content

feat(ci): publish plugin marketplace on release#709

Open
bj456736 wants to merge 1 commit into
MoonshotAI:mainfrom
bj456736:feat/plugin-marketplace-ci-release
Open

feat(ci): publish plugin marketplace on release#709
bj456736 wants to merge 1 commit into
MoonshotAI:mainfrom
bj456736:feat/plugin-marketplace-ci-release

Conversation

@bj456736

Copy link
Copy Markdown
Contributor

Summary

This PR adds plugin marketplace publishing to the release workflow, addressing the backlog task "ci 增加插件发版".

Changes

  1. .github/workflows/release.yml:

    • Added Build plugin marketplace step after Build packages
    • Added Upload plugin marketplace artifact step to store CDN artifacts
    • Added publish-plugin-marketplace job that uploads marketplace artifacts to GitHub Release when packages are published
  2. apps/kimi-code/scripts/build-plugin-marketplace-cdn.mjs:

    • Made materializeEntrySource skip missing sources gracefully with a warning instead of throwing an error
    • This prevents the build from failing when external plugins (like curated/superpowers) are not present locally

Technical Decisions

  • Artifact-based approach: Marketplace artifacts are built and uploaded in the release job, then downloaded and published in a separate publish-plugin-marketplace job. This follows the same pattern as native artifacts publishing.
  • GitHub Release as distribution: The marketplace JSON and plugin ZIPs are uploaded to the GitHub Release, making them available via GitHub's CDN. This is a simple and reliable distribution mechanism.
  • Graceful degradation: Missing plugin sources are skipped rather than failing the build, which is important for external plugins that may not be present in the local repository.

Testing

  • Verified pnpm run build:plugin-marketplace works locally
  • The build-plugin-marketplace-cdn script now handles missing sources correctly

Future Work

  • Consider setting up a dedicated CDN (e.g., GitHub Pages, Vercel, S3) for the plugin marketplace if traffic grows
  • For external plugins like superpowers, consider updating marketplace.json to point to external URLs or GitHub Releases directly

- Add plugin marketplace build step to release workflow
- Upload marketplace artifacts to GitHub Release
- Make build script skip missing sources gracefully
@changeset-bot

changeset-bot Bot commented Jun 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c735459

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jun 13, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@c735459
npx https://pkg.pr.new/@moonshot-ai/kimi-code@c735459

commit: c735459

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant