chore(release): pick the latest tag from all refs #89
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: Check PR | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-pr: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| version: 11.17.0 | |
| - name: Setup Node | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Install Playwright browsers | |
| run: pnpm exec playwright install chromium --with-deps | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Test | |
| run: pnpm test | |
| - name: Format check | |
| run: pnpm run format:check | |
| - name: Build | |
| run: pnpm build | |
| - name: Generate gallery | |
| run: pnpm run generate:gallery | |
| # The generators above rewrite tracked files. Without this the CI runs | |
| # them and throws the result away, so a pull request can commit stale | |
| # generated output and still go green. | |
| - name: Check generated output is committed | |
| run: | | |
| if ! git diff --exit-code; then | |
| echo "::error::Generated files are out of date. Run 'pnpm build && pnpm run generate:gallery' and commit the result." | |
| exit 1 | |
| fi |