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?