Next.js Discord

Discord Forum

Next.js CI build cache inside turborepo

Unanswered
Leafcutting bee posted this in #help-forum
Open in Discord
Avatar
Leafcutting beeOP
I am attempting to setup CI build caching for our next.js app which lives in a pnpm workspace turborepo setup. I have this code in our script, but it does not seem to work:
      - uses: actions/cache@v3
        name: Setup next.js build cache
        with:
          path: |
            ~/.pnpm-store
            ${{ github.workspace }}/apps/orderpicker/.next/cache
          key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.css') }}
          restore-keys: |
            ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-


Any idea?

1 Reply

Avatar
Leafcutting beeOP
Bump?