File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,30 @@ yarn test
214
214
yarn run publish
215
215
```
216
216
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
+
217
241
[ 0 ] : https://img.shields.io/badge/stability-stable-green.svg?style=flat-square
218
242
[ 1 ] : https://nodejs.org/api/documentation.html#documentation_stability_index
219
243
[ 2 ] : https://img.shields.io/npm/v/@commitlint/cli.svg?style=flat-square
You can’t perform that action at this time.
0 commit comments