minor #2853 Prevent yarn watch
to exit if TypeScript plugin is unab…
#262
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dist Files Unbuilt | |
on: | |
push: | |
paths-ignore: | |
- 'src/*/doc/**' | |
- 'src/**/*.md' | |
- 'ux.symfony.com/**' | |
pull_request: | |
paths-ignore: | |
- 'src/*/doc/**' | |
- 'src/**/*.md' | |
- 'ux.symfony.com/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: npm i -g corepack && corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
cache-dependency-path: | | |
yarn.lock | |
**/package.json | |
- run: yarn --immutable && yarn build | |
- name: Check if JS dist files are current | |
run: | | |
if ! git diff --quiet; then | |
echo "The Git workspace is unclean! Changes detected:" | |
git status --porcelain | |
git diff | |
exit 1 | |
else | |
echo "The Git workspace is clean. No changes detected." | |
fi |