diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b6462d02..8d5e95ea 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -22,18 +22,18 @@ jobs: - name: 检出代码 uses: actions/checkout@v4 - - name: 设置 Node.js 环境 - uses: actions/setup-node@v4 - with: - node-version: '22' - cache: 'pnpm' - - name: 安装 pnpm uses: pnpm/action-setup@v2 with: version: 10.5.2 run_install: false + - name: 设置 Node.js 环境 + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'pnpm' + - name: 安装依赖 run: pnpm install diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e7abcf2..740fed10 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,18 +20,18 @@ jobs: - name: 检出代码 uses: actions/checkout@v4 - - name: 设置 Node.js 环境 - uses: actions/setup-node@v4 - with: - node-version: '22' - cache: 'pnpm' - - name: 安装 pnpm uses: pnpm/action-setup@v2 with: version: 10.5.2 run_install: false + - name: 设置 Node.js 环境 + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'pnpm' + - name: 安装依赖 run: pnpm install