Skip to content

fix: resolve type errors — narrow undefined access, use Zod schema fo… #2

fix: resolve type errors — narrow undefined access, use Zod schema fo…

fix: resolve type errors — narrow undefined access, use Zod schema fo… #2

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
- run: pnpm install --frozen-lockfile
- run: pnpm run lint
typecheck:
name: Typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
- run: pnpm install --frozen-lockfile
- run: pnpm run typecheck
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- run: pnpm test
release:
name: Release
runs-on: ubuntu-latest
needs: [lint, typecheck, test]
if: github.event_name == 'push'
permissions:
contents: write
id-token: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
registry-url: https://registry.npmjs.org
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- run: pnpm exec semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}