Skip to content

Commit

Permalink
fix(ci): run prepublish topologically to fix auxiliary publishing (#2384
Browse files Browse the repository at this point in the history
)
  • Loading branch information
gagik authored Feb 25, 2025
1 parent 4994d9f commit 4a09f59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/build/src/npm-packages/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ export function publishToNpm(
},
};

// There seems to be a bug where lerna does not run prepublish topologically
// during the publish step, causing build errors. This ensures all packages are topologically
// compiled beforehand.
spawnSync(LERNA_BIN, ['run', 'prepublish', '--sort'], commandOptions);

// Lerna requires a clean repository for a publish from-package
// we use git update-index --assume-unchanged on files we know have been bumped
spawnSync(
Expand Down

0 comments on commit 4a09f59

Please sign in to comment.