From 6226e90974d6acbb34a5cdabeae2fd26fe214513 Mon Sep 17 00:00:00 2001 From: apathiaX Date: Tue, 8 Oct 2024 22:51:06 +0800 Subject: [PATCH] wip: github action --- .github/workflows/deploy-docs.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 4bf03be..cd888ba 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -13,15 +13,21 @@ jobs: node-version: [18] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: pnpm/action-setup@v2.2.2 - with: - version: 7 - - name: Use Node.js ${{ matrix.node-version }} + # 检出代码 + - name: Checkout + uses: actions/checkout@v3 + + # 设置 Node.js 版本 + - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} - cache: 'pnpm' + node-version: '18' + + # 安装 pnpm + - name: Install pnpm + run: | + npm install -g pnpm + - name: Install dependencies run: pnpm install