Skip to content

chore: release v0.23.1 #32

chore: release v0.23.1

chore: release v0.23.1 #32

Workflow file for this run

name: Lint
# `push` is main-only for the same reason as unity-tests.yml: with `['**']` a branch
# with an open PR ran this twice, because the concurrency group keys on github.ref and
# push and pull_request disagree about what that is. The pull_request trigger keeps no
# paths filter -- the job is 45 seconds, and a type error is worth catching on any PR.
on:
push:
branches: [main]
paths:
- 'packages/**'
- 'docs/**'
- 'kitchen-sink/react/**'
- 'unity/core/.react/**'
- '*.json'
- '*.jsonc'
- '*.yaml'
- '.github/workflows/lint.yml'
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version-file: .node-version
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm check
# These two used to be one step. `pnpm build` ran tsc, so a green build was also a
# green type check; now it runs tsdown, which transpiles per file and never does
# whole-program analysis, so type errors have to be asked for separately.
# Build has to come first: `typecheck` is unfiltered, so it also checks the apps
# under unity/core/.react and kitchen-sink, and those resolve @reactunity/renderer
# to dist/index.d.ts -- absent before a build, every import of it is TS2307.
- name: Build the publishable packages
run: pnpm build
- name: Type-check the publishable packages
run: pnpm typecheck