Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/actions/src/releasePackages/generateReleaseTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down