Skip to content

ci: publish plugin marketplace on release#1205

Open
bj456736 wants to merge 1 commit into
MoonshotAI:mainfrom
bj456736:auto-pr-20260629-1800
Open

ci: publish plugin marketplace on release#1205
bj456736 wants to merge 1 commit into
MoonshotAI:mainfrom
bj456736:auto-pr-20260629-1800

Conversation

@bj456736

Copy link
Copy Markdown
Contributor

Automatically build and publish the plugin marketplace as part of the release workflow.

- 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 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bda4206

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 29, 2026

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

commit: bda4206

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bda420677c

ℹ️ 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".

publish-plugin-marketplace:
name: Publish plugin marketplace
needs: release
if: needs.release.outputs.packages_published == 'true'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Gate marketplace publishing on Kimi Code releases

When a changesets publish only includes another workspace package, packages_published is still true, but apps/kimi-code/scripts/native/resolve-release.mjs emits should_publish=false and a fallback @moonshot-ai/kimi-code@<current package.json version> tag. This job will then upload the newly generated marketplace to the previous Kimi Code release (or fail if that tag is absent), so releases for e.g. the SDK/core can mutate the wrong release assets; use the Kimi Code-specific kimi_native_release/should_publish output for this job.

Useful? React with 👍 / 👎.

run: |
# The artifact contains files directly under dist-plugin-marketplace/
cd dist-plugin-marketplace
gh release upload "$RELEASE_TAG" marketplace.json --clobber

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Provide repository context to gh uploads

This new job downloads artifacts but never checks out the repository and does not pass --repo/set GH_REPO. I checked the gh manual (https://cli.github.com/manual/gh_help_environment): GH_REPO is the repository for commands that otherwise operate on a local repository, so from dist-plugin-marketplace after actions/download-artifact there is no local repo for gh release upload to infer and the upload fails before publishing any marketplace assets; add checkout or pass --repo ${{ github.repository }}.

Useful? React with 👍 / 👎.

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