fix(ci): remove default working-directory to avoid chdir error before checkout
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user