Skip to content

Update index.ts

Update index.ts #35

Workflow file for this run

# .github/workflows/ci.yml
name: Master-Prompt-Editor CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build_and_lint:
name: Build & Lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
# ✅ Corrected cache path to use package.json files
cache-dependency-path: '**/package.json'
- name: Install all dependencies
run: |
npm install
npm install --prefix server
npm install --prefix client
- name: Lint project
run: npm run lint:all
- name: Build all projects
run: npm run build:all