mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
ci(dev): pin associated dev versions (#11238)
This commit is contained in:
@@ -58,6 +58,13 @@ async function getReleaseEntries(dry: boolean, devTag?: string) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (devTag) {
|
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);
|
const devVersion = await fetchDevVersion(pkg.name, devTag);
|
||||||
if (devVersion?.endsWith(commitHash)) {
|
if (devVersion?.endsWith(commitHash)) {
|
||||||
// Write the currently released dev version so when pnpm publish runs on dependents they depend on the dev versions
|
// Write the currently released dev version so when pnpm publish runs on dependents they depend on the dev versions
|
||||||
|
|||||||
Reference in New Issue
Block a user