Fix CI so all pnpm commands run in web dir (#7)

* fix ci so all pnpm commands run in web dir

Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>

* rename workflow file

Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>

---------

Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
This commit is contained in:
Ian Ngethe Muchiri
2026-02-05 21:30:47 +03:00
committed by GitHub
parent 0de93ba853
commit e60c444987
@@ -30,9 +30,11 @@ jobs:
with:
node-version: 22
cache: "pnpm"
cache-dependency-path: "web/pnpm-lock.yaml"
- name: Install dependencies
run: pnpm install
working-directory: ./web
- name: Setup Pages
id: setup_pages
@@ -42,20 +44,21 @@ jobs:
uses: actions/cache@v4
with:
path: |
.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
web/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('web/pnpm-lock.yaml') }}-${{ hashFiles('web/**.[jt]s', 'web/**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
${{ runner.os }}-nextjs-${{ hashFiles('web/pnpm-lock.yaml') }}-
- name: Build with Next.js
run: pnpm run build
working-directory: ./web
env:
FQ_BASE_PATH: ${{ steps.setup_pages.outputs.base_path }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out
path: ./web/out
deploy:
name: Deploy to github pages