Skip to content

Commit 9c0d155

Browse files
committed
actually exit with non-zero if format mismatches
kcd-scripts format runs with --write by default. So we end up with --check --write which always exits with 0 if the formatting was succesful
1 parent da1da33 commit 9c0d155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141
# TODO: Can be removed if https://github.com/kentcdodds/kcd-scripts/pull/146 is released
4242
- name: Verify format (`npm run format` committed?)
43-
run: npm run format -- --check
43+
run: npm run format -- --check --no-write
4444

4545
- name: ▶️ Run validate script
4646
run: npm run validate

0 commit comments

Comments
 (0)