]> git.ardis.lu - csvio/commitdiff
Use staged publishing
authorArdis Lu <ardisglu@gmail.com>
Sun, 14 Jun 2026 05:18:14 +0000 (22:18 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sun, 14 Jun 2026 05:18:14 +0000 (22:18 -0700)
Reference: https://docs.npmjs.com/staged-publishing/

.github/workflows/release.yml
package.json

index 928c406474705a153bf056a0c812de6a4a4dcb12..c68918f5105902fdb5b0e5865140918a8a38e7a4 100644 (file)
@@ -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
index efec5742a96e6dc9739cd25855eed1f273638d86..89a2b244a01ae9a6878750f2c123c76be3216172 100644 (file)
@@ -24,7 +24,7 @@
     },
     "packageManager": {
       "name": "npm",
-      "version": ">=11.6.2"
+      "version": ">=11.15.0"
     }
   },
   "files": [
This page took 0.038157 seconds and 4 git commands to generate.