From fdcf882dd1696ff24d47c61b9b7ea0c48c9ce78e Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Fri, 9 Oct 2026 07:20:44 +0200 Subject: [PATCH] chore(ci): expose staged publication diagnostics (#16776) * chore(ci): expose staged publication diagnostics * chore(ci): route staging diagnostics to stderr --- .github/scripts/npm-staged-publication.sh | 2 +- .github/scripts/npm-staged-publication.test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/npm-staged-publication.sh b/.github/scripts/npm-staged-publication.sh index a557b9f8b1..bf1cab0853 100755 --- a/.github/scripts/npm-staged-publication.sh +++ b/.github/scripts/npm-staged-publication.sh @@ -58,7 +58,7 @@ stage_packages() { --access public \ --provenance \ --no-git-checks \ - --reporter=silent \ + --use-stderr \ --json) if ! stage_id=$(jq -er --arg name "$name" \ '.[$name].stageId | strings | select(length > 0)' <<< "$stage_output"); then diff --git a/.github/scripts/npm-staged-publication.test.sh b/.github/scripts/npm-staged-publication.test.sh index 60130e281d..c9eabe916b 100755 --- a/.github/scripts/npm-staged-publication.test.sh +++ b/.github/scripts/npm-staged-publication.test.sh @@ -78,7 +78,7 @@ NPM_STAGE_TEST_PNPM_LOG="$pnpm_log" \ "$script_dir/npm-staged-publication.sh" stage 'test layer' next-12 \ "$test_tmp/staged" "$test_tmp/already" -grep -q 'stage publish.*/staged/ --registry https://registry.npmjs.org/ --npmrc-auth-file /dev/null --tag next-12 --access public --provenance --no-git-checks --reporter=silent --json' "$pnpm_log" +grep -q 'stage publish.*/staged/ --registry https://registry.npmjs.org/ --npmrc-auth-file /dev/null --tag next-12 --access public --provenance --no-git-checks --use-stderr --json' "$pnpm_log" test "$(wc -l < "$pnpm_log")" -eq 1 grep -q '| `@pnpm/staged@1.0.0` | `11111111-2222-4333-8444-555555555555` |' "$summary" grep -q '| `@pnpm/already@1.0.0` | already published |' "$summary"