Fix deploy silent no-op after zx 7→8 upgrade #4
Workflow file for this run
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: Build | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| - 'releases/*' | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: '22' | |
| package-manager-cache: false | |
| - run: npm ci | |
| - run: npm run build | |
| - name: Check dist/ is up to date | |
| run: | | |
| if [ "$(git diff --name-only dist/)" != "" ]; then | |
| echo "dist/ is out of date. Run 'npm run build' and commit the result." | |
| git diff dist/ | |
| exit 1 | |
| fi |