This is an automated email from the ASF dual-hosted git repository.

nic-6443 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new fae270412 fix(ci): unbreak CI under pnpm 12 (#13921)
fae270412 is described below

commit fae270412cfb739dc96aeeae5154946be5654831
Author: Nic <[email protected]>
AuthorDate: Mon Sep 7 15:22:58 2026 +0800

    fix(ci): unbreak CI under pnpm 12 (#13921)
---
 ci/common.sh | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/ci/common.sh b/ci/common.sh
index b99819b5e..5122e0037 100644
--- a/ci/common.sh
+++ b/ci/common.sh
@@ -108,7 +108,15 @@ install_nodejs () {
     export PNPM_HOME="/pnpm"
     export PATH="$PNPM_HOME:$PATH"
     corepack enable pnpm
-    pnpm setup
+    # Pin the pnpm used outside t/, which has its own packageManager pin.
+    # pnpm 12 turned two long-standing warnings into hard errors that both
+    # break CI: running "pnpm setup" under sudo, and "pnpm dlx" installing a
+    # package whose dependency has an unapproved build script -- the latter
+    # hits t/plugin/grpc-web.t, which runs the client through "pnpx tsx"
+    # (esbuild). 11.25.0 is the last version CI was green on.
+    # Expiry: drop this pin once grpc-web.t no longer needs pnpm to run
+    # esbuild's build script unprompted.
+    corepack prepare [email protected] --activate
 }
 
 install_brotli () {

Reply via email to