Skip to content

ci: add release action #7

ci: add release action

ci: add release action #7

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
run: corepack enable && corepack prepare
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm lint
type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
run: corepack enable && corepack prepare
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install
run: pnpm install --frozen-lockfile
- name: Typecheck
run: pnpm type-check
test:
runs-on: ${{ matrix.os }}
needs: [lint, type-check]
strategy:
fail-fast: false
matrix:
node: [16, 20]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Setup pnpm
run: corepack enable && corepack prepare
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install
run: pnpm install --frozen-lockfile
- name: Test
run: pnpm test