Skip to content

Commit a55c829

Browse files
committed
Won't modify the readme in CI situations
1 parent 2996d41 commit a55c829

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
permissions:
1212
contents: write
1313

14+
env:
15+
CI: true
16+
1417
jobs:
1518
publish:
1619
runs-on: ubuntu-latest

build.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ const table = sizes.map(line).join("\n");
4747

4848
console.log(table);
4949

50+
if (process.env.CI === "true") process.exit(0);
51+
5052
const readme = await Bun.file("./README.md").text();
5153
const newReadme = readme.replace(
5254
/(```x-sizes)[\s\S]*(```)/m,

0 commit comments

Comments
 (0)