From 25229c4ddf3ab3b7b27217f6ea178b6ba4f8b6fa Mon Sep 17 00:00:00 2001 From: Joe Fusco Date: Thu, 22 Oct 2026 19:30:56 -0400 Subject: [PATCH] ci: pick plugins to sync from the release-please manifest --- .github/workflows/release-please.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 8d8dac6b..b32bdcc3 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -52,9 +52,12 @@ jobs: - name: Sync version into plugin files run: | - # Only plugins whose version this release PR bumps (three-dot ignores main moving ahead) - for file in $(git diff --name-only origin/main...HEAD -- 'plugins/*/package.json'); do - slug=$(echo "$file" | cut -d/ -f2) + # Only plugins whose version this release PR bumps. Read it from the manifest, since + # package.json may already hold the new version and so not show up in the diff. + BASE=$(git merge-base origin/main HEAD) + for path in $(jq -r --argjson base "$(git show "$BASE:.release-please-manifest.json")" \ + 'to_entries[] | select(.value != $base[.key]) | .key' .release-please-manifest.json); do + slug=$(basename "$path") echo "Syncing release files for $slug" bash .github/scripts/sync_plugin_release_files.sh "$slug" done