From 420c17a7e8fe9a9603b1db82f0913921024c9c94 Mon Sep 17 00:00:00 2001 From: maxnth Date: Wed, 21 Aug 2024 09:40:59 +0200 Subject: [PATCH] cd: update deploy.yml --- .github/workflows/deploy.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1ef6a8bc..39ce2e2d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,18 +9,27 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: 9 + run_install: false + + - name: Install Node.js + uses: actions/setup-node@v4 with: node-version: 20 - cache: yarn - - run: yarn install --frozen-lockfile + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install - name: Build - run: yarn docs:build + run: pnpm docs:build - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: docs/.vitepress/dist