Skip to content

Commit 964cf15

Browse files
committed
Check files in sync on CI
1 parent acfb401 commit 964cf15

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/nodejs.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,14 @@ jobs:
2121
npm ci
2222
npm run lint
2323
npm run build
24-
env:
25-
CI: true
24+
- name: check no diff
25+
run: |
26+
diff_files=$(git diff)
27+
if [[ -n "$diff_files" ]]; then
28+
echo "Diff:"
29+
echo ""
30+
echo "$diff_files"
31+
echo ""
32+
echo "Please run 'npm run build' locally and commit changes."
33+
exit 1
34+
fi

0 commit comments

Comments
 (0)