-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (33 loc) · 954 Bytes
/
Copy pathlint.yml
File metadata and controls
41 lines (33 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Lint Check
on:
# Build on pushes to branches that have a PR (including drafts)
pull_request:
# Build on pushes to the main branch
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- uses: actions/checkout@v6
# Node 24: postbuild runs .ts scripts directly via built-in type stripping
- name: Setup Environment
uses: ./.github/actions/setup
with:
node-version: 24
- name: Set Turbo cache bypass on rerun
if: github.run_attempt > 1
run: echo "TURBO_FORCE=true" >> $GITHUB_ENV
- name: Format Check
run: pnpm check:format
- name: Lint
run: pnpm check:lint
- name: Publint
run: pnpm build:cli && pnpm publint