From 6baa2c2291503a68e674d098b9beeb793418e825 Mon Sep 17 00:00:00 2001 From: Zhengchao Liu Date: Mon, 10 Aug 2026 12:27:26 -0700 Subject: [PATCH] fix: stabilize npm publishing runtime --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 431a886..b1a9402 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -128,13 +128,13 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: "20" + node-version: "24" registry-url: "https://registry.npmjs.org" - name: Upgrade npm - # Trusted publishing (OIDC) requires npm >= 11.5.1, newer than the - # version bundled with Node 20. - run: npm install -g npm@latest + # Trusted publishing (OIDC) requires npm >= 11.5.1. Pin the major so + # a future npm release cannot unexpectedly require a newer runtime. + run: npm install -g npm@11 - name: Get version from tag id: version