Reference: https://docs.npmjs.com/staged-publishing/
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
},
"packageManager": {
"name": "npm",
- "version": ">=11.6.2"
+ "version": ">=11.15.0"
}
},
"files": [