From e8425d3e2df497ec6ff431bf46239a91e87b1599 Mon Sep 17 00:00:00 2001 From: csr632 <632882184@qq.com> Date: Sun, 2 Jul 2023 23:21:58 +0800 Subject: [PATCH] fix github workflow --- .github/workflows/deploy.yml | 12 ++++++------ .github/workflows/test.yml | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5ac115c7..d84962a0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,12 +15,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'pnpm' - - uses: pnpm/action-setup@v2 name: Install pnpm id: pnpm-install @@ -28,6 +22,12 @@ jobs: version: 'latest' run_install: false + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + - name: Get pnpm store directory id: pnpm-cache shell: bash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 98a81ae1..bde8455d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,18 +24,18 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'pnpm' - - uses: pnpm/action-setup@v2 name: Install pnpm id: pnpm-install with: version: 'latest' run_install: false + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' - name: Get pnpm store directory id: pnpm-cache