From ff8cddad1c4e3ecf3e22bd666be389a92d907b82 Mon Sep 17 00:00:00 2001 From: pearmini Date: Fri, 12 Jul 2024 11:44:28 +0800 Subject: [PATCH] fix(deploy): use npm instead of yarn --- .github/workflows/deploy.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3a4183b5dd..a29ce004cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,6 +2,9 @@ name: Deploy on: workflow_dispatch: + pull_request: + branches: + - v5 push: branches: - v5 @@ -11,8 +14,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - run: yarn install - - run: cd site && yarn install + - name: Setup Node.js environment + uses: actions/setup-node@v2.1.5 + with: + node-version: '20' + - run: npm install + - run: cd site && npm install - run: cd site && npm run build - run: cp ./site/CNAME ./site/dist/CNAME - run: |