ci: fix custom registry replace logic (#267925)

This commit is contained in:
Robo
2025-09-24 06:53:15 +09:00
committed by GitHub
parent 61d114ddc1
commit ec5651561a

View File

@@ -34,7 +34,7 @@ async function* getPackageLockFiles(dir) {
*/
async function setup(url, file) {
let contents = await fs.readFile(file, 'utf8');
contents = contents.replace(/https:\/\/registry\.[^.]+\.com\//g, url);
contents = contents.replace(/https:\/\/registry\.[^.]+\.org\//g, url);
await fs.writeFile(file, contents);
}