0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix: version lifecycle script (#2832)

This commit is contained in:
Gao Sun 2023-01-06 16:33:08 +08:00 committed by GitHub
parent f371a61460
commit 7fb689b734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 4 deletions

View file

@ -0,0 +1,7 @@
---
"@logto/cli": patch
"@logto/create": patch
"@logto/schemas": patch
---
Fix version lifecycle script

View file

@ -33,9 +33,14 @@ const ignoreCmd = getIgnoreGroup()
.join(''); .join('');
const cmd = ('pnpm changeset version' + ignoreCmd); const cmd = ('pnpm changeset version' + ignoreCmd);
console.log(cmd); const catchCmdError = ({ stderr, code }) => {
await execAsync(cmd).catch(({ stderr, code }) => {
console.error(stderr); console.error(stderr);
process.exit(code ?? 1); 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);