You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Publish doesn't check the value of the --tag option. I can provide an invalid tag name and publish will proceed.
Expected Behavior
If the dist-tag is specified, publish checks it early on, prior to 2FA and sending a request to the registry.
Steps To Reproduce
Change to a directory with a test package
Change the package version, possibly using npm version patch
Run npm publish --access=public --tag=@invalid
Environment
npm: 10.5.0
Node.js: v20.11.1
OS Name: macOS 13.6.4
System Model Name: MacBook Air
npm config:
; "user" config from /Users/hashtagchris/.npmrc
@npm:registry = "https://npm.pkg.github.com"
//npm.pkg.github.com/:_authToken = (protected)
//registry.npmjs.org/:_authToken = (protected)
logs-max = 1000
; node bin location = /Users/hashtagchris/.nvm/versions/node/v20.11.1/bin/node; node version = v20.11.1; npm local prefix = /private/tmp/unpub2; npm version = 10.5.0; cwd = /private/tmp/unpub2; HOME = /Users/hashtagchris; Run `npm config ls -l` to show all defaults.
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Publish doesn't check the value of the
--tag
option. I can provide an invalid tag name and publish will proceed.Expected Behavior
If the dist-tag is specified, publish checks it early on, prior to 2FA and sending a request to the registry.
Steps To Reproduce
npm version patch
npm publish --access=public --tag=@invalid
Environment
The text was updated successfully, but these errors were encountered: