chore: release main (#385) #541
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: Validate | |
| # Runs the framework's pre-commit hooks against the full tree on every push | |
| # and pull request, so contributions that bypass lefthook locally | |
| # (--no-verify, fork PRs, web edits) are still gated by the same logic. | |
| on: | |
| push: | |
| branches: [main, next] | |
| pull_request: | |
| branches: [main, next] | |
| permissions: | |
| contents: read | |
| jobs: | |
| lefthook: | |
| name: lefthook (framework-local checks) | |
| runs-on: ubuntu-latest | |
| env: | |
| LEFTHOOK_CHILD: "1" | |
| CI: "true" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Setup Node | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: "22" | |
| - name: Install pnpm | |
| run: | | |
| corepack enable | |
| corepack prepare pnpm@latest --activate | |
| - name: Cache pnpm store | |
| uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 | |
| with: | |
| path: ~/.local/share/pnpm/store | |
| key: pnpm-${{ runner.os }}-${{ hashFiles('package.json') }} | |
| restore-keys: pnpm-${{ runner.os }}- | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile=false --ignore-scripts | |
| - name: Run pre-commit hooks against the full tree | |
| run: pnpm exec lefthook run pre-commit --all-files --force |