From aa39993d7025eca81505790c1898606d58b03bbc Mon Sep 17 00:00:00 2001 From: henry Date: Fri, 20 Sep 2024 21:26:42 +0800 Subject: [PATCH] fix 'npm ERR' and incorrect git command --- .github/workflows/build-nightly-cron.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-nightly-cron.yaml b/.github/workflows/build-nightly-cron.yaml index 5861cca..e7e98da 100644 --- a/.github/workflows/build-nightly-cron.yaml +++ b/.github/workflows/build-nightly-cron.yaml @@ -142,7 +142,7 @@ jobs: if: steps.cache-npm-dependencies.outputs.cache-hit != 'true' run: | cd ${{ env.SOURCECODE_DIR }}/project - npm install + npm install --legacy-peer-deps shell: pwsh - name: Build Windows Server @@ -211,7 +211,7 @@ jobs: - name: Clone Medusa's Server Code run: | - git -b ${{ env.NIGHTLY_BRANCH }} clone ${{ env.SERVER_URL }}/${{ env.REPOSITORY_SERVER_MEDUSA }} ${{ env.SOURCECODE_DIR }} + git clone -b ${{ env.NIGHTLY_BRANCH }} ${{ env.SERVER_URL }}/${{ env.REPOSITORY_SERVER_MEDUSA }} ${{ env.SOURCECODE_DIR }} cd ${{ env.SOURCECODE_DIR }} git lfs pull shell: bash