From 5dd9b072d8c34e541ae0b18e93eaf972b6c05dcf Mon Sep 17 00:00:00 2001 From: Jack Ye Date: Fri, 6 Feb 2026 16:30:46 -0800 Subject: [PATCH] ci: upgrade node version for publishing (#2993) Trusted publishing requires npm >=11.5.1, which means node>=24. Also need `npm config set provenance true` to fully enable it --- .github/workflows/npm-publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index f326ef6eb..c7a5e46c5 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -318,7 +318,7 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 24 cache: npm cache-dependency-path: nodejs/package-lock.json registry-url: "https://registry.npmjs.org" @@ -350,6 +350,7 @@ jobs: env: DRY_RUN: ${{ !startsWith(github.ref, 'refs/tags/v') }} run: | + npm config set provenance true ARGS="--access public" if [[ $DRY_RUN == "true" ]]; then ARGS="$ARGS --dry-run"