Merge pull request #5 from zayne-labs/changeset-release/main #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and Type | |
on: | |
pull_request: | |
push: | |
branches: main | |
permissions: | |
contents: read | |
jobs: | |
lint-and-type: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9.15.0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- name: Install dependencies and build | |
run: | | |
pnpm install --frozen-lockfile | |
pnpm build | |
- name: Run linters | |
run: | | |
pnpm lint:check-types | |
pnpm lint:eslint |