fix(release): keep TypeScript compiler external

This commit is contained in:
Peter Steinberger
2026-05-15 12:31:51 +01:00
parent b3d9bef38d
commit f06e9f6358
4 changed files with 13 additions and 8 deletions
+8 -4
View File
@@ -444,10 +444,14 @@ jobs:
async function fetchWithRetry(url, options = {}) {
let lastStatus = "unknown";
for (let attempt = 1; attempt <= 12; attempt += 1) {
const response = await fetch(url, { redirect: "manual", ...options });
lastStatus = response.status;
if (response.status !== 429 && response.status < 500) {
return response;
try {
const response = await fetch(url, { redirect: "manual", ...options });
lastStatus = response.status;
if (response.status !== 429 && response.status < 500) {
return response;
}
} catch (error) {
lastStatus = error instanceof Error ? error.message : String(error);
}
await new Promise((resolve) => setTimeout(resolve, attempt * 5000));
}