yarn npm tag add — Yarn CLI reference
Add a tag for a specific version of a package
Docs/Reference/CLI/npm/tag/add
yarn npm tag add
Add a tag for a specific version of a package
yarn npm tag add <PACKAGE> <TAG>
This command adds a tag to the npm registry for a specific version of a package. If the tag already exists, it will be overwritten.
The request is sent to the registry the package would be published to (the workspace’s publishConfig.registry if the package is one of the project’s workspaces, otherwise npmPublishRegistry as configured for its scope or matching package rules) and always requires authentication. If the registry requires two-factor authentication, use --otp or enter the code when prompted.
One-time password to use when the registry requires two-factor authentication
Examples#
Add a beta tag for version 2.3.4-beta.4 of package my-pkg
yarn npm tag add my-pkg@2.3.4-beta.4 beta