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
|
runs-on: ubuntu
|
||||||
container:
|
container:
|
||||||
image: node:22
|
image: node:22
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: web
|
|
||||||
|
|
||||||
steps:
|
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
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -43,6 +32,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Get pnpm store directory
|
- name: Get pnpm store directory
|
||||||
shell: bash
|
shell: bash
|
||||||
|
working-directory: web
|
||||||
run: |
|
run: |
|
||||||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
|
||||||
id: pnpm-cache
|
id: pnpm-cache
|
||||||
@@ -56,9 +46,11 @@ jobs:
|
|||||||
${{ runner.os }}-pnpm-store-
|
${{ runner.os }}-pnpm-store-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
working-directory: web
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
working-directory: web
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
|
|||||||
Reference in New Issue
Block a user