ci: Add warning to debug release script

This commit is contained in:
Aaron
2026-04-13 00:42:42 -05:00
parent 08b9ea6e47
commit 7e473375e5
+5 -1
View File
@@ -37,7 +37,7 @@ if (currentVersion.startsWith('0.')) {
bumpType = 'patch';
}
}
await Bun.$`cd "${pkgDir}" && bun pm version ${bumpType}`;
await Bun.$`bun pm version ${bumpType}`.cwd(pkgDir);
const updatedPkgJson = await Bun.file(pkgJsonPath).json();
const newVersion: string = updatedPkgJson.version;
const newTag = getPkgTag(pkg, newVersion);
@@ -98,6 +98,10 @@ if (pkg === 'wxt') {
templatePkgJsonPaths.push(templatePkgJsonPath);
consola.success(`Updated wxt version in ${templatePkgJsonPath}`);
}
} else {
console.warn(`No package.json found in ${templatePkgJsonPath}`, {
cwd: process.cwd(),
});
}
}
}