fix(ci): remove default working-directory to avoid chdir error before checkout
Build and Deploy / Build Frontend (push) Successful in 1m2s
Build and Deploy / Build and Push Docker Image (push) Failing after 0s

This commit is contained in:
2026-08-07 21:48:02 +08:00
parent 4c10a0032f
commit 870ee1ce85
+3 -11
View File
@@ -20,19 +20,8 @@ jobs:
runs-on: ubuntu
container:
image: node:22
defaults:
run:
working-directory: web
steps:
- name: Verify Node.js
run: |
which node || echo "node not found in PATH"
node --version || echo "node command failed"
echo "PATH: $PATH"
export PATH="/usr/local/bin:$PATH"
node --version
- name: Checkout repository
uses: actions/checkout@v4
@@ -43,6 +32,7 @@ jobs:
- name: Get pnpm store directory
shell: bash
working-directory: web
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
id: pnpm-cache
@@ -56,9 +46,11 @@ jobs:
${{ runner.os }}-pnpm-store-
- name: Install dependencies
working-directory: web
run: pnpm install --frozen-lockfile
- name: Build
working-directory: web
run: pnpm build
docker: