mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
ci: filter out ignore group when exec lifecycle scripts (#3018)
This commit is contained in:
parent
69af8a381d
commit
f17b69a513
1 changed files with 7 additions and 3 deletions
|
@ -29,7 +29,8 @@ const getIgnoreGroup = () => {
|
|||
});
|
||||
}
|
||||
|
||||
const ignoreCmd = getIgnoreGroup()
|
||||
const ignoreGroup = getIgnoreGroup();
|
||||
const ignoreCmd = ignoreGroup
|
||||
.map(({ name }) => ` \\\n --ignore ${name}`)
|
||||
.join('');
|
||||
const cmd = ('pnpm changeset version' + ignoreCmd);
|
||||
|
@ -44,8 +45,11 @@ console.log(cmd);
|
|||
|
||||
await execAsync(cmd).catch(catchCmdError);
|
||||
|
||||
const filterCmd = ignoreGroup
|
||||
.map(({ name }) => ` \\\n --filter \\!${name}`)
|
||||
.join('');
|
||||
// Manually run lifecycle script since changesets didn't
|
||||
await execAsync('pnpm -r version').catch(catchCmdError);
|
||||
await execAsync(`pnpm -r ${filterCmd} version`).catch(catchCmdError);
|
||||
|
||||
// Sanity check for prepublish scripts
|
||||
await execAsync('pnpm -r prepublishOnly').catch(catchCmdError);
|
||||
await execAsync(`pnpm -r ${filterCmd} prepublishOnly`).catch(catchCmdError);
|
||||
|
|
Loading…
Reference in a new issue