Skip to content

add build and lint workflow in CI, fix lint errors #2

add build and lint workflow in CI, fix lint errors

add build and lint workflow in CI, fix lint errors #2

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: lint
runs-on: ubuntu-latest
if: github.repository == 'cortexclick/cortex-sdk'
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Check types
run: npm run lint
build:
name: build
runs-on: ubuntu-latest
if: github.repository == 'cortexclick/cortex-sdk'
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Build
run: npm run build