From bf4e6fb586ddb31060fd0726816c980f204c5cfa Mon Sep 17 00:00:00 2001 From: Jan Kaifer Date: Thu, 15 Dec 2022 13:16:36 +0100 Subject: [PATCH] Revert "Run packing in tests in parallel" This reverts commit df527e7aadeec75f5a310b628f7f80faecac805f. --- .../src/prepare/repo-setup.js | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/actions/next-stats-action/src/prepare/repo-setup.js b/.github/actions/next-stats-action/src/prepare/repo-setup.js index a76bc4dc24c1..493644727d6e 100644 --- a/.github/actions/next-stats-action/src/prepare/repo-setup.js +++ b/.github/actions/next-stats-action/src/prepare/repo-setup.js @@ -129,19 +129,16 @@ module.exports = (actionInfo) => { // wait to pack packages until after dependency paths have been updated // to the correct versions - await Promise.all( - Array.from(pkgDatas.keys()).map(async (pkgName) => { - const { pkg, pkgPath } = pkgDatas.get(pkgName) - await exec(`cd ${pkgPath} && yarn pack -f ${pkg}-packed.tgz`, true, { - env: { - // Yarn installed through corepack will not run in pnpm project without this env var set - // This var works for corepack >=0.15.0 - COREPACK_ENABLE_STRICT: '0', - }, - }) + for (const pkgName of pkgDatas.keys()) { + const { pkg, pkgPath } = pkgDatas.get(pkgName) + await exec(`cd ${pkgPath} && yarn pack -f ${pkg}-packed.tgz`, true, { + env: { + // Yarn installed through corepack will not run in pnpm project without this env var set + // This var works for corepack >=0.15.0 + COREPACK_ENABLE_STRICT: '0', + }, }) - ) - + } return pkgPaths }, }