@@ -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 }}/yarn.lock" ]; then
37
+ if [ -f "${{ github.workspace }}/frontend/ 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 }}/package.json" ]; then
42
+ elif [ -f "${{ github.workspace }}/frontend/ 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
@@ -65,20 +65,20 @@ jobs:
65
65
uses : actions/cache@v4
66
66
with :
67
67
path : |
68
- .next/cache
68
+ frontend/ .next/cache
69
69
# Generate a new cache whenever packages or source files change.
70
- key : ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
70
+ key : ${{ runner.os }}-nextjs-${{ hashFiles('frontend/ **/package-lock.json', 'frontend/ **/yarn.lock') }}-${{ hashFiles('frontend/ **.[jt]s', 'frontend/ **.[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('**/package-lock.json', '**/yarn.lock') }}-
73
+ ${{ runner.os }}-nextjs-${{ hashFiles('frontend/ **/package-lock.json', 'frontend/ **/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
77
77
run : ${{ steps.detect-package-manager.outputs.runner }} next build
78
78
- name : Upload artifact
79
79
uses : actions/upload-pages-artifact@v3
80
80
with :
81
- path : ./ out
81
+ path : frontend/. out
82
82
83
83
# Deployment job
84
84
deploy :
0 commit comments