mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
ci: fix pinning (#11243)
This commit is contained in:
@@ -59,10 +59,9 @@ async function getReleaseEntries(dry: boolean, devTag?: string) {
|
|||||||
|
|
||||||
if (devTag) {
|
if (devTag) {
|
||||||
// Replace workspace dependencies with * to pin to associated dev versions
|
// 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) {
|
if (!dry) {
|
||||||
await write(`${pkg.path}/package.json`, pkgJsonString);
|
const pkgJsonString = await file(`${pkg.path}/package.json`).text();
|
||||||
|
await write(`${pkg.path}/package.json`, pkgJsonString.replaceAll(/workspace:[\^~]/g, 'workspace:*'));
|
||||||
}
|
}
|
||||||
|
|
||||||
const devVersion = await fetchDevVersion(pkg.name, devTag);
|
const devVersion = await fetchDevVersion(pkg.name, devTag);
|
||||||
|
|||||||
Reference in New Issue
Block a user