Skip to content

Commit f9e2585

Browse files
committed
chore: switch publish and push order in release process to avoid tag errors
1 parent 89866a7 commit f9e2585

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/release

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,14 @@ const release = () => {
162162
log(chalk.magenta('--- STEP 5: VERSION PACKAGES ---'));
163163
runCmd('npx lerna version --conventional-commits --yes');
164164

165-
log(chalk.magenta('--- STEP 6: PUSH TAGS ---'));
166-
runCmd(`git push origin ${getCurrentBranch()} --follow-tags`);
167-
168-
log(chalk.magenta('--- STEP 7: PUBLISH PACKAGES ---'));
165+
log(chalk.magenta('--- STEP 6: PUBLISH PACKAGES ---'));
169166
let releaseCmd = 'npx lerna publish from-git --yes';
170167
if (argv.next) releaseCmd += ' --canary --preid next --dist-tag next';
171168
if (argv.loglevel) releaseCmd += ` --loglevel ${argv.loglevel}`;
172169
runCmd(releaseCmd);
170+
171+
log(chalk.magenta('--- STEP 7: PUSH TAGS ---'));
172+
runCmd(`git push origin ${getCurrentBranch()} --follow-tags`);
173173
};
174174

175175
/**

0 commit comments

Comments
 (0)