Skip to content

Commit 0eaee18

Browse files
committed
docs: correct info regarding modifying npm tags
1 parent dabdfc9 commit 0eaee18

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

README.md

+14-2
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ For more information on how to contribute please take a look at our [contributio
206206

207207
### Publishing a release
208208

209+
```sh
210+
npm login
211+
```
212+
209213
```sh
210214
yarn clean
211215
yarn install
@@ -216,6 +220,10 @@ yarn run publish --otp <one-time password>
216220

217221
#### Publish a `next` release
218222

223+
```sh
224+
npm login
225+
```
226+
219227
```sh
220228
yarn clean
221229
yarn install
@@ -226,16 +234,20 @@ npx lerna publish --conventional-commits --dist-tag next --otp <one-time passwor
226234

227235
##### Move `next` to `latest`
228236

237+
```sh
238+
npm login
239+
```
240+
229241
Move next to latest:
230242

231243
```sh
232-
npx lerna exec --no-bail --no-private --no-sort --stream -- '[ -n "$(npm v . dist-tags.next)" ] && npm dist-tag add ${LERNA_PACKAGE_NAME}@$(npm v . dist-tags.next) latest --otp <one-time password>
244+
npx lerna exec --no-bail --no-private --no-sort --stream -- '[ -n "$(npm v . dist-tags.next)" ] && npm dist-tag add ${LERNA_PACKAGE_NAME}@$(npm v . dist-tags.next) latest --otp <one-time password>'
233245
```
234246

235247
Remove next:
236248

237249
```sh
238-
npx lerna exec --no-bail --no-private --no-sort --stream -- '[ -n "$(npm v . dist-tags.next)" ] && npm dist-tag rm ${LERNA_PACKAGE_NAME}@$(npm v . dist-tags.next) latest --otp <one-time password>
250+
npx lerna exec --no-bail --no-private --no-sort --stream -- '[ -n "$(npm v . dist-tags.next)" ] && npm dist-tag rm ${LERNA_PACKAGE_NAME} next --otp <one-time password>'
239251
```
240252

241253
[0]: https://img.shields.io/badge/stability-stable-green.svg?style=flat-square

0 commit comments

Comments
 (0)