Skip to content

Commit 19d832d

Browse files
committed
ci: optimize lint workflow by separating format check
- Add format:check script for read-only format validation - Remove redundant lint step in CI workflow - Keep format check separate from lint to avoid file modifications in CI
1 parent d9dd113 commit 19d832d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: pnpm run lint
3232

3333
- name: Run format check
34-
run: pnpm run check
34+
run: pnpm run format:check
3535

3636
- name: Run type check
3737
run: pnpm run build

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"start": "node dist/index.js",
1414
"lint": "biome check .",
1515
"format": "biome format --write .",
16+
"format:check": "biome format .",
1617
"check": "biome check --write .",
1718
"prepublishOnly": "pnpm run build && pnpm run check",
1819
"publish:npm": "pnpm publish --access public"

0 commit comments

Comments
 (0)