From 390793f003432dfb17af6237ac77d56f09ba2be4 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sat, 13 Jun 2026 22:18:14 -0700 Subject: [PATCH] Use staged publishing Reference: https://docs.npmjs.com/staged-publishing/ --- .github/workflows/release.yml | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 928c406..c68918f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,6 +34,6 @@ jobs: node-version-file: ".node-version" registry-url: "https://registry.npmjs.org" package-manager-cache: false - - run: npm install -g npm@latest # npm >=11.5.1 required for trusted publishing + - run: npm install -g npm@latest # npm >=11.15.0 required for staged publishing - run: npm ci - - run: npm publish --provenance --access public + - run: npm stage publish --provenance --access public diff --git a/package.json b/package.json index efec574..89a2b24 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "packageManager": { "name": "npm", - "version": ">=11.6.2" + "version": ">=11.15.0" } }, "files": [ -- 2.47.3