Thanks to visit codestin.com
Credit goes to github.com

Skip to content

v9.14.1 version of pnpm breaks changeset publish #8788

@iosh

Description

@iosh

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

No response

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

mkdir pnpmtest9141
cd pnpmtest9141
pnpm -v # 9.14.1
pnpm init
pnpm add  @changesets/cli && pnpm changeset init
pnpm changeset publish

Get an error


🦋  info npm info pnpmtest9141
🦋  warn Received 404 for npm info "pnpmtest9141"
🦋  info pnpmtest9141 is being published because our local version (1.0.0) has not been published on npm
🦋  info Publishing "pnpmtest9141" at "1.0.0"
🦋  error error while checking if token is required npm error code E401
🦋  error npm error 401 Unauthorized - GET https://registry.npmjs.org/-/npm/v1/user
🦋  error npm error A complete log of this run can be found in: /root/.npm/_logs/2024-11-20T08_52_30_769Z-debug-0.log
🦋  

🦋  error     },
🦋  error     {
🦋  error       "path": "package.json"
🦋  error     }
🦋  error   ]
🦋  error }" of package "README.md"
🦋  error     },
🦋  error     {
🦋  error       "path": "package.json"
🦋  error     }
🦋  error   ]
🦋  error }": Tags may not have any characters that encodeURIComponent encodes. 
🦋  error npm error code EINVALIDTAGNAME
🦋  error npm error Invalid tag name "README.md"
🦋  error npm error     },
🦋  error npm error     {
🦋  error npm error       "path": "package.json"
🦋  error npm error     }
🦋  error npm error   ]
🦋  error npm error }" of package "README.md"
🦋  error npm error     },
🦋  error npm error     {
🦋  error npm error       "path": "package.json"
🦋  error npm error     }
🦋  error npm error   ]
🦋  error npm error }": Tags may not have any characters that encodeURIComponent encodes.
🦋  error npm error A complete log of this run can be found in: /root/.npm/_logs/2024-11-20T08_52_32_862Z-debug-0.log
🦋  error 
🦋  error packages failed to publish:
🦋  [email protected]

Describe the Bug

This error only happened [email protected]

Should not get error: An error occurred while publishing pnpmtest9141: EINVALIDTAGNAME Invalid tag name "README.md"

Expected Behavior

Should work as in pnpm 9.13.2.

Which Node.js version are you using?

v22.11.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions