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`; } });