fix(ci): sync package-lock.json with package.json changes #7
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
| name: CI | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| branches: [main, dev] | |
| jobs: | |
| build: | |
| name: Build & Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "npm" | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Turbo Cache | |
| id: turbo-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: .turbo | |
| key: ${{ runner.os }}-turbo-${{ github.sha }} | |
| restore-keys: | | |
| ${{ runner.os }}-turbo- | |
| - name: Lint | |
| run: npm run lint | |
| - name: Build | |
| run: npm run build | |
| env: | |
| NEXT_PUBLIC_SANITY_PROJECT_ID: "placeholder" | |
| NEXT_PUBLIC_SANITY_DATASET: "production" | |
| NEXT_PUBLIC_SITE_URL: "http://localhost:3000" | |
| SANITY_API_TOKEN: "placeholder" | |
| DATABASE_URL: "postgresql://placeholder" | |
| RESEND_API_KEY: "placeholder" | |
| EMAIL_FROM: "onboarding@resend.dev" | |
| EMAIL_TO: "placeholder@example.com" |