Skip to content

Commit 8efd23f

Browse files
committed
docs: add info on how to release under next-tag
1 parent 07bb5ab commit 8efd23f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,30 @@ yarn test
214214
yarn run publish
215215
```
216216

217+
#### Publish a `next` release
218+
219+
```sh
220+
yarn clean
221+
yarn install
222+
yarn run build
223+
yarn test
224+
npx lerna publish --conventional-commits --dist-tag next
225+
```
226+
227+
##### Move `next` to `latest`
228+
229+
Move next to latest:
230+
231+
```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>
233+
```
234+
235+
Remove next:
236+
237+
```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>
239+
```
240+
217241
[0]: https://img.shields.io/badge/stability-stable-green.svg?style=flat-square
218242
[1]: https://nodejs.org/api/documentation.html#documentation_stability_index
219243
[2]: https://img.shields.io/npm/v/@commitlint/cli.svg?style=flat-square

0 commit comments

Comments
 (0)