Merge pull request #4 from haiodo/enable-formatting-check

Enable formatting check
This commit is contained in:
Artyom Savchenko
2025-11-14 16:45:43 +07:00
committed by GitHub
+10
View File
@@ -30,6 +30,16 @@ jobs:
- name: Rush test
run: node common/scripts/install-run-rush.js test --verbose
- name: Publish packages
- name: Formatting...
run: node common/scripts/install-run-rush.js format --force
- name: Check files formatting
run: |
echo '================================================================'
echo 'Checking for diff files'
echo '================================================================'
git diff '*.js' '*.ts' '*.svelte' '*.json' '*.yaml' | cat
[ -z "$(git diff --name-only '*.js' '*.ts' '*.svelte' '*.json' '*.yaml' | cat)" ]
echo '================================================================'
if: startsWith(github.ref, 'refs/tags/v0.7.') || startsWith(github.ref, 'refs/tags/s0.7.')
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}