Skip to content

Add ESM + CJS support for live-compositor and @live-compositor/core #156

Add ESM + CJS support for live-compositor and @live-compositor/core

Add ESM + CJS support for live-compositor and @live-compositor/core #156

Workflow file for this run

name: TS SDK check
on:
push:
branches: [master]
paths:
- "ts/**"
pull_request:
types: [opened, synchronize]
paths:
- "ts/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "20"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-
- name: Install project dependencies
working-directory: ./ts
run: npm install
- name: Build
working-directory: ./ts
run: npm run build:all
- name: Lint code
working-directory: ./ts
run: npm run lint
- name: Typecheck code
working-directory: ./ts
run: npm run typecheck