@@ -34,12 +34,12 @@ jobs:
34
34
- name : Detect package manager
35
35
id : detect-package-manager
36
36
run : |
37
- if [ -f "${{ github.workspace }}/react/ yarn.lock" ]; then
37
+ if [ -f "${{ github.workspace }}/yarn.lock" ]; then
38
38
echo "manager=yarn" >> $GITHUB_OUTPUT
39
39
echo "command=install" >> $GITHUB_OUTPUT
40
40
echo "runner=yarn" >> $GITHUB_OUTPUT
41
41
exit 0
42
- elif [ -f "${{ github.workspace }}/react/ package.json" ]; then
42
+ elif [ -f "${{ github.workspace }}/package.json" ]; then
43
43
echo "manager=npm" >> $GITHUB_OUTPUT
44
44
echo "command=ci" >> $GITHUB_OUTPUT
45
45
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
@@ -67,10 +67,10 @@ jobs:
67
67
path : |
68
68
.build/cache
69
69
# Generate a new cache whenever packages or source files change.
70
- key : ${{ runner.os }}-nextjs-${{ hashFiles('**/react/ package-lock.json', '**/react /yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
70
+ key : ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
71
71
# If source files changed but packages didn't, rebuild from a prior cache.
72
72
restore-keys : |
73
- ${{ runner.os }}-nextjs-${{ hashFiles('**/react/ package-lock.json', '**/react /yarn.lock') }}-
73
+ ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
74
74
- name : Install dependencies
75
75
run : ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
76
76
- name : Build with Next.js
0 commit comments