From 355c914ecf36d088434ef30d7ef355131435945f Mon Sep 17 00:00:00 2001 From: denisx Date: Thu, 19 Dec 2024 15:30:26 +0300 Subject: [PATCH] fix: set size-limit to 1kb; (#1484) --- .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`; } });