Publishing patches to older component versions #749
Labels
documentation
Improvements or additions to documentation
role: FED
stale
this issue is more than 30 days old
Sometimes we will need to fix a bug in an older version of a component. How do we do that?
point-in-history-where-patch-needed
2.5.0
would beversion2.5
npm publish --tag version2.5
As long as you supply a
--tag <tagname>
argument tonpm publish
, the latest tag will not be updated, and people usingnpm install <package>
ornpm install <package>@latest
will still get the latest version.Note that the tagname has to share a namespace with version numbers, so it's best to choose a tagname that doesn't look like a semver version; avoid '1.0.6' or 'v1.0.6'.
sources and examples
The text was updated successfully, but these errors were encountered: