From c02fe7b3814d00a6f1ac98eb272f51baedc25bb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=F0=9F=8E=83=20Khripkov?= Date: Mon, 9 Dec 2024 16:55:50 +0300 Subject: [PATCH] fix: set size-limit to 1kb; --- .github/workflows/package-size.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package-size.yml b/.github/workflows/package-size.yml index 16557e314d..bd1d1bf7c5 100644 --- a/.github/workflows/package-size.yml +++ b/.github/workflows/package-size.yml @@ -51,10 +51,10 @@ jobs: const now = currentFile[packageName]?.[entryPoint] || 0; const before = masterFile[packageName]?.[entryPoint] || 0; - if (Math.abs(now - before) > 2) { + if (Math.abs(now - before) >= 1) { shouldComment = true; acc += `| ${packageName}/${entryPoint} | ${now} ${ - now - before > 0 ? `(+${(now - before).toFixed(2)} KB🔺)` : `(-${(before - now).toFixed(2)} KB)` + now - before > 0 ? `(+${(now - before).toFixed(2)} KB🔺)` : `(-${(before - now).toFixed(2)} KB💚)` } |\n`; } });