publish beta to npm

Sometime we want to try out a new build. We don't want to release to everyone and cause a ciaos.

We want to release a beta version and only for people specific want to try it.

dist-tag is for this purpose.

Create this following task in package.json

"publish-npm:beta": "npm publish --tag=next"

if the testing goes well, we can change the tag to latest. And everyone will see this officially on npm site.

latest is a special tag

Typically, projects only use the latest tag for stable release versions, and use other tags for unstable versions such as prereleases.

npm dist-tag rm <pkg> <tag>

To list all tags

npm dist-tag ls [<pkg>]

To add tag to a certain version

npm dist-tag add <pkg>@<version> [<tag>]