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:
parent
9c1b3d77aa
commit
df9e98dcef
2 changed files with 16 additions and 4 deletions
7
.changeset/slow-meals-enjoy.md
Normal file
7
.changeset/slow-meals-enjoy.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
"@logto/cli": patch
|
||||
"@logto/create": patch
|
||||
"@logto/schemas": patch
|
||||
---
|
||||
|
||||
Fix version lifecycle script
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue