Skip to content

Commit 757fb1f

Browse files
authored
Merge pull request #126 from icelam/docs/dist-tag
docs: documentation on modifying distribution tags
2 parents 4ea2adf + 24dedf8 commit 757fb1f

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
@@ -63,3 +63,11 @@ git checkout develop
6363
git merge --no-ff master
6464
git push
6565
```
66+
67+
## Pointing distribution tags `latest` to a specific version
68+
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:
69+
70+
```bash
71+
# Point the distribution tags `latest` to a specific version (OTP needed)
72+
npm dist-tag add html-inline-script-webpack-plugin@<version> latest
73+
```

0 commit comments

Comments
 (0)