yarn tag
yarn tag
Add, remove, or list tags on a package.
What are tags?
Distribution tags (or dist-tags) are a way of marking published versions of your package with a label. Users of your package can install it using this label instead of a version number.
For example, if you had a stable release channel and a canary release channel, you could use tags as a way to allow the user to type:
yarn add your-package-name@stable yarn add your-package-name@canary
Different tags have different meanings:
-
latest
: The current version of the package -
stable
: The latest stable release of the package, normally the same as latest unless you have Long-term Support (LTS) -
beta
: A release before becoming latest and/or stable, used to sha