Tagging a Package
The package registry supports version tags which can be managed by the npm dist-tag command:
npm dist-tag add {package_name}@{version} {tag}
Example:
npm dist-tag add my-package@1.0.0 latest
Note that the tag name must not be a valid version. All tag names which can be parsed as a version will be rejected.
How to Publish NPM Packages in the Package Registry ?
The npm Package Registry serves as an invaluable tool for publishing npm packages for individual developers or organizations.
This article will guide you through the requirements, configuration, and usage of the npm package registry.
Table of Content
- Setting Up the Package Registry
- Publishing a Package
- Authenticating via the .npmrc
- Publishing a package via the command line
- Publishing a package by using a CI/CD pipeline
- Unpublishing a Package
- Installing a Package
- Tagging a Package
- Searching Packages
- Supported Commands
- Conclusion
Contact Us