diff --git a/.changeset/slow-meals-enjoy.md b/.changeset/slow-meals-enjoy.md new file mode 100644 index 000000000..40a2f8a22 --- /dev/null +++ b/.changeset/slow-meals-enjoy.md @@ -0,0 +1,7 @@ +--- +"@logto/cli": patch +"@logto/create": patch +"@logto/schemas": patch +--- + +Fix version lifecycle script diff --git a/.scripts/version.js b/.scripts/version.js index 6a22b0418..0ab170533 100644 --- a/.scripts/version.js +++ b/.scripts/version.js @@ -33,9 +33,14 @@ const ignoreCmd = getIgnoreGroup() .join(''); const cmd = ('pnpm changeset version' + ignoreCmd); -console.log(cmd); - -await execAsync(cmd).catch(({ stderr, code }) => { +const catchCmdError = ({ stderr, code }) => { console.error(stderr); process.exit(code ?? 1); -}); +}; + +console.log(cmd); + +await execAsync(cmd).catch(catchCmdError); + +// Manually run lifecycle script since changesets didn't +await execAsync('pnpm -r version').catch(catchCmdError);