Update index.ts #33
This file contains hidden or 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
| # .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 |