diff options
author | Lin Clark <lin.w.clark@gmail.com> | 2015-04-08 03:01:13 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2015-04-08 20:04:23 +0300 |
commit | 2ef88989c41bee1578570bb2172c90ede129dbd1 (patch) | |
tree | e044a20f15294c23a4d2dfd197c6ffb0a674b356 | |
parent | 891379fc7d32160d6543bf3e3f6f1ba328f855fd (diff) |
doc: --tag prevents setting "latest" on publish
-rw-r--r-- | doc/cli/npm-dist-tag.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/cli/npm-dist-tag.md b/doc/cli/npm-dist-tag.md index f8e4566ca..ce4f7ed4d 100644 --- a/doc/cli/npm-dist-tag.md +++ b/doc/cli/npm-dist-tag.md @@ -33,7 +33,8 @@ When installing dependencies, a preferred tagged version may be specified: This also applies to `npm dedupe`. -Publishing a package always sets the "latest" tag to the published version. +Publishing a package sets the "latest" tag to the published version unless the +`--tag` option is used. For example, `npm publish --tag=beta`. ## PURPOSE |