Skip to content

Prepare 0.6.0 release #149

Prepare 0.6.0 release

Prepare 0.6.0 release #149

name: Check TypeScript
on: [pull_request]
jobs:
lint-typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@f40ffcd9367d9f12939873eb1018b921a783ffaa # v4
with:
version: 10
run_install: false
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
cache-dependency-path: ./typescript
- name: Install dependencies
working-directory: ./typescript
run: pnpm install --frozen-lockfile
- name: Lint
working-directory: ./typescript
run: pnpm lint
build-typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@f40ffcd9367d9f12939873eb1018b921a783ffaa # v4
with:
version: 10
run_install: false
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
cache-dependency-path: ./typescript
- name: Install and build
working-directory: ./typescript
run: |
pnpm install --frozen-lockfile
pnpm build
test-typescript:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["20", "22"]
steps:
- uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@f40ffcd9367d9f12939873eb1018b921a783ffaa # v4
with:
version: 10
run_install: false
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./typescript
- name: Install and Test
working-directory: ./typescript
run: |
pnpm install --frozen-lockfile
pnpm test