Skip to content

Commit 24dedf8

Browse files
committed
docs: documentation on modifying distribution tags
1 parent ce6cbf5 commit 24dedf8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/publish.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,11 @@ npm publish
5858
# push code and trigger github release creation
5959
git push
6060
```
61+
62+
## Pointing distribution tags `latest` to a specific version
63+
Since npm automatically tag newest published version with distribution tags `latest`, it might be end up in some scenerio where a smaller semver is being taged as `latest`. To point a specific version of package back to `latest`, run the command:
64+
65+
```bash
66+
# Point the distribution tags `latest` to a specific version (OTP needed)
67+
npm dist-tag add html-inline-script-webpack-plugin@<version> latest
68+
```

0 commit comments

Comments
 (0)