From acc97a3941e474aae6117c08bf8e103da3dffa64 Mon Sep 17 00:00:00 2001 From: jinmingyang <2214962083@qq.com> Date: Mon, 19 Jan 2026 14:00:52 +0800 Subject: [PATCH] chore: update GitHub Actions workflow for website deployment by removing unnecessary working-directory specification and adjusting cache paths for pnpm --- .github/workflows/deploy-website.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 2f6af4b..8dc8bc4 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -21,9 +21,6 @@ env: jobs: build: runs-on: ubuntu-latest - defaults: - run: - working-directory: website steps: - name: Checkout uses: actions/checkout@v4 @@ -38,7 +35,7 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} cache: 'pnpm' - cache-dependency-path: 'website/pnpm-lock.yaml' + cache-dependency-path: 'pnpm-lock.yaml' - name: Get pnpm store directory shell: bash @@ -49,7 +46,7 @@ jobs: uses: actions/cache@v4 with: path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('website/pnpm-lock.yaml') }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- @@ -57,7 +54,7 @@ jobs: run: pnpm install --frozen-lockfile - name: Build website - run: pnpm build + run: pnpm --filter ai-workflow-website build env: NEXT_PUBLIC_SITE_URL: https://ai-workflow.xiaominglab.com NEXT_PUBLIC_GIT_SHA: ${{ github.sha }}