@@ -18,6 +18,10 @@ permissions:
1818 pages : write
1919 id-token : write
2020
21+ defaults :
22+ run :
23+ working-directory : landing-page
24+
2125# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2226# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2327concurrency :
@@ -34,12 +38,12 @@ jobs:
3438 - name : Detect package manager
3539 id : detect-package-manager
3640 run : |
37- if [ -f "${{ github.workspace }}/yarn.lock" ]; then
41+ if [ -f "${{ github.workspace }}/landing-page/ yarn.lock" ]; then
3842 echo "manager=yarn" >> $GITHUB_OUTPUT
3943 echo "command=install" >> $GITHUB_OUTPUT
4044 echo "runner=yarn" >> $GITHUB_OUTPUT
4145 exit 0
42- elif [ -f "${{ github.workspace }}/package.json" ]; then
46+ elif [ -f "${{ github.workspace }}/landing-page/ package.json" ]; then
4347 echo "manager=npm" >> $GITHUB_OUTPUT
4448 echo "command=ci" >> $GITHUB_OUTPUT
4549 echo "runner=npx --no-install" >> $GITHUB_OUTPUT
5256 uses : actions/setup-node@v4
5357 with :
5458 node-version : " 20"
55- cache : ${{ steps.detect-package-manager.outputs.manager }}
59+ cache : npm
60+ cache-dependency-path : landing-page/package-lock.json
5661 - name : Setup Pages
5762 uses : actions/configure-pages@v5
5863 with :
7883 - name : Upload artifact
7984 uses : actions/upload-pages-artifact@v3
8085 with :
81- path : ./out
86+ path : ./landing-page/ out
8287
8388 # Deployment job
8489 deploy :
0 commit comments