Skip to content

Commit

Permalink
fix: see size for pr;
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis 🎃 Khripkov committed Dec 9, 2024
1 parent e6499b9 commit bda1cdf
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/package-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,10 @@ jobs:
const now = currentFile[packageName]?.[entryPoint] || 0;
const before = masterFile[packageName]?.[entryPoint] || 0;
if (Math.abs(now - before) > 2) {
shouldComment = true;
acc += `| ${packageName}/${entryPoint} | ${now} ${
now - before > 0 ? `(+${(now - before).toFixed(2)} KB🔺)` : `(-${(before - now).toFixed(2)} KB)`
} |\n`;
}
shouldComment = true;
acc += `| ${packageName}/${entryPoint} | ${now} ${
now - before > 0 ? `(+${(now - before).toFixed(2)} KB🔺)` : `(-${(before - now).toFixed(2)} KB)`
} |\n`;
});
return acc;
Expand Down

0 comments on commit bda1cdf

Please sign in to comment.