ci(release): use RELEASE_PAT for tag-release pushes #27
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
| # Core CI: typecheck + tests + token validation on every push to main | |
| # and every pull request. | |
| # | |
| # Dependabot PRs auto-merge by default when they're eligible. Without | |
| # this gate, a bad dep bump lands on main before anyone runs the | |
| # tests. With this gate, GitHub blocks auto-merge until ci.yml goes | |
| # green. | |
| # | |
| # Deliberately minimal. Heavier jobs (weekly eval, vision critique, | |
| # release publish) live in their own workflows. | |
| name: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node (pinned) | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.22.2" | |
| - name: Install | |
| run: npm ci | |
| - name: Build | |
| # tsc + schema regen + rules manifest. Required before Test | |
| # because cli-int-flags spawns bin/ahd.js which imports from | |
| # dist/. The npm prepare hook used to do this implicitly; | |
| # v0.9 split it out so the Nix sandbox build does not break. | |
| run: npm run build | |
| - name: Typecheck | |
| run: npx tsc --noEmit | |
| - name: Test | |
| run: npm test --silent | |
| - name: Validate style tokens | |
| run: node ./bin/ahd.js validate-tokens |