From 57898f13c1c6f6c63e1ecba49a0c607cd4833bd0 Mon Sep 17 00:00:00 2001 From: weishu Date: Mon, 13 Nov 2023 12:04:37 +0800 Subject: [PATCH] website: fix vitepress ci --- .github/workflows/deploy-website.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 0eec368f..03a8552b 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -26,9 +26,12 @@ jobs: # Build job build: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./website steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Not needed if lastUpdated is not enabled - name: Setup Node @@ -36,10 +39,11 @@ jobs: with: node-version: 18 cache: yarn # or pnpm / yarn + cache-dependency-path: website/yarn.lock - name: Setup Pages uses: actions/configure-pages@v3 - name: Install dependencies - run: yarn install # or pnpm install / yarn install / bun install + run: yarn install --frozen-lockfile - name: Build with VitePress run: | yarn docs:build