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
f371a61460
commit
7fb689b734
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('');
|
.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);
|
||||||
|
|
Loading…
Reference in a new issue