Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I get the following warnings when publishing NPM packages:
npm WARN publish npm auto-corrected some errors in your package.json when publishing. Please run "npm pkg fix" to address these errors.
npm WARN publish errors corrected:
npm WARN publish Removed invalid "scripts"
The command here was npm publish --ignore-scripts --json /home/runner/work/memory-allocator/memory-allocator/src --access public --provenance.
The problem is... there is no "scripts" field in the package.json.
You can see the problem here.
Expected Behavior
There should be no warnings.
Steps To Reproduce
- Run same workflow on same repository (or fork) after a Git tag was pushed.
- Observe the error.
Environment
- npm: 10.1.0
- Node.js: 20.8.0
- OS Name: Ubuntu 22.04.3
- System Model Name: GitHub Actions ubuntu-22.04 runner, version 20231001.1.0
- npm config: not changing any
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I get the following warnings when publishing NPM packages:
The command here was
npm publish --ignore-scripts --json /home/runner/work/memory-allocator/memory-allocator/src --access public --provenance.The problem is... there is no "scripts" field in the
package.json.You can see the problem here.
Expected Behavior
There should be no warnings.
Steps To Reproduce
Environment