f3caa23908
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
32 lines
638 B
YAML
32 lines
638 B
YAML
name: types
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: [format]
|
|
types: [completed]
|
|
branches: [master, main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
types:
|
|
name: types
|
|
runs-on: ubuntu-latest
|
|
environment: types
|
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.workflow_run.head_branch }}
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
cache: 'npm'
|
|
|
|
- run: npm ci
|
|
|
|
- name: Type check
|
|
run: npm run typecheck || npx tsc --noEmit || echo "No TypeScript config"
|