Skip to content

Commit

Permalink
Add explanation for outdated JS files
Browse files Browse the repository at this point in the history
  • Loading branch information
yoanm committed Mar 13, 2024
1 parent a15adaf commit a75e7f7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ jobs:
- name: "Build "
run: make build && make package
- name: "Detect forgotten compilation before push"
run: test -z "$(git diff --name-only dist/)"
- name: "Lint"
run: |
if test -z "$(git diff --name-only dist/)"; then
echo "JS files up-to-date 👌";
exit 0;
fi
echo "::error::JS files are outdated ! Run 'nvm use && make build && make package && git add dist && git commit -m \"Re-compile TS files\"'.";
exit 1;
- name: "Lint"
run: make lint

0 comments on commit a75e7f7

Please sign in to comment.