From 6320ba8c1a41a29a993da2e7523e69964b9b865c Mon Sep 17 00:00:00 2001 From: Walter Cheng Date: Mon, 24 Aug 2026 21:05:09 -0400 Subject: [PATCH] fix: include catalog description in npm metadata --- .github/workflows/agent-marketplace-release.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/agent-marketplace-release.yaml b/.github/workflows/agent-marketplace-release.yaml index 1d0e165..d229e9e 100644 --- a/.github/workflows/agent-marketplace-release.yaml +++ b/.github/workflows/agent-marketplace-release.yaml @@ -253,6 +253,7 @@ jobs: NPM_REGISTRY: ${{ inputs.npm_registry }} NPM_TOKEN: ${{ secrets.NPM_TOKEN || secrets.GITEA_TOKEN }} PACKAGE_PATHS: ${{ inputs.package_paths }} + CATALOG_FILE: ${{ inputs.catalog_file }} VERSION: ${{ needs.release-please.outputs.version }} shell: bash run: | @@ -278,11 +279,16 @@ jobs: # package and the generic archive can never drift apart. pkg_dir="dist/${ARCHIVE_NAME}-${VERSION}" files_json="$(printf '%s\n' ${PACKAGE_PATHS} | jq -R . | jq -s .)" + description="" + if [[ -n "$CATALOG_FILE" ]]; then + description="$(jq -r '.description // empty' "$CATALOG_FILE")" + fi jq -n \ --arg name "$NPM_PACKAGE_NAME" \ --arg version "$VERSION" \ + --arg description "$description" \ --argjson files "$files_json" \ - '{name: $name, version: $version, files: $files, private: false}' \ + '{name: $name, version: $version, files: $files, private: false} + (if $description == "" then {} else {description: $description} end)' \ > "${pkg_dir}/package.json" # `npm pack ` without a leading `./` is parsed as a GitHub owner/repo