ci(dev): pin associated dev versions (#11238)

This commit is contained in:
ckohen
2025-11-01 22:38:17 -07:00
committed by GitHub
parent 06a75e80bc
commit 3bb13f96b4

View File

@@ -58,6 +58,13 @@ async function getReleaseEntries(dry: boolean, devTag?: string) {
};
if (devTag) {
// Replace workspace dependencies with * to pin to associated dev versions
const pkgJsonString = await file(`${pkg.path}/package.json`).text();
pkgJsonString.replaceAll(/workspace:[\^~]/g, 'workspace:*');
if (!dry) {
await write(`${pkg.path}/package.json`, pkgJsonString);
}
const devVersion = await fetchDevVersion(pkg.name, devTag);
if (devVersion?.endsWith(commitHash)) {
// Write the currently released dev version so when pnpm publish runs on dependents they depend on the dev versions