diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 54d97f9..e8bb886 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -34,15 +34,6 @@ jobs: fetch-depth: 0 # 如果未启用 lastUpdated,则不需要 # - uses: pnpm/action-setup@v3 # 如果使用 pnpm,请取消注释 # - uses: oven-sh/setup-bun@v1 # 如果使用 Bun,请取消注释 - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: npm # 或 pnpm / yarn - - - name: Setup Pages - uses: actions/configure-pages@v4 - - name: Setup Python uses: actions/setup-python@v2 with: @@ -53,6 +44,15 @@ jobs: python -m pip install pydantic python docs/mkdoc.py + - name: Setup Node + uses: actions/setup-node@v4 + run: |- + cd docs + npm install + + - name: Setup Pages + uses: actions/configure-pages@v4 + - name: Install node dependencies run: |- cd docs