fix 'npm ERR' and incorrect git command

This commit is contained in:
henry
2024-09-20 21:26:42 +08:00
parent e27863936b
commit aa39993d70

View File

@@ -142,7 +142,7 @@ jobs:
if: steps.cache-npm-dependencies.outputs.cache-hit != 'true' if: steps.cache-npm-dependencies.outputs.cache-hit != 'true'
run: | run: |
cd ${{ env.SOURCECODE_DIR }}/project cd ${{ env.SOURCECODE_DIR }}/project
npm install npm install --legacy-peer-deps
shell: pwsh shell: pwsh
- name: Build Windows Server - name: Build Windows Server
@@ -211,7 +211,7 @@ jobs:
- name: Clone Medusa's Server Code - name: Clone Medusa's Server Code
run: | 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 }} cd ${{ env.SOURCECODE_DIR }}
git lfs pull git lfs pull
shell: bash shell: bash