Skip to content

Commit c2d9abe

Browse files
authored
Merge pull request #2221 from pie-framework/develop
master
2 parents a05f89e + 83827e0 commit c2d9abe

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

scripts/release

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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
*/
161161
const 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

0 commit comments

Comments
 (0)