File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,12 +159,19 @@ const test = () => {
159159 * - If the `argv.loglevel` flag is provided, the specified log level will be included in the publishing command.
160160 */
161161const release = ( ) => {
162+ if ( argv . next ) {
163+ log ( chalk . magenta ( '--- STEP 5: NEXT/CANARY RELEASE ---' ) ) ;
164+ let releaseCmd = 'npx lerna publish --canary --preid next --dist-tag next --include-merged-tags --yes' ;
165+ if ( argv . loglevel ) releaseCmd += ` --loglevel ${ argv . loglevel } ` ;
166+ runCmd ( releaseCmd ) ;
167+ return ;
168+ }
169+
162170 log ( chalk . magenta ( '--- STEP 5: VERSION PACKAGES ---' ) ) ;
163171 runCmd ( 'npx lerna version --conventional-commits --yes' ) ;
164172
165173 log ( chalk . magenta ( '--- STEP 6: PUBLISH PACKAGES ---' ) ) ;
166174 let releaseCmd = 'npx lerna publish from-git --yes' ;
167- if ( argv . next ) releaseCmd += ' --canary --preid next --dist-tag next' ;
168175 if ( argv . loglevel ) releaseCmd += ` --loglevel ${ argv . loglevel } ` ;
169176 runCmd ( releaseCmd ) ;
170177
You can’t perform that action at this time.
0 commit comments