From 80a1888e53fb39822f09c1704c35978a7b5beb83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Fri, 8 Nov 2024 22:53:12 +0800 Subject: [PATCH] =?UTF-8?q?23=EF=BC=9A=E5=B0=9D=E8=AF=95=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=AE=BF=E4=B8=BB=E6=9C=BA=E7=9A=84=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E5=92=8Cnpm=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/buildArm64-and-release.yml | 47 ++++++++++++++++++-- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/.github/workflows/buildArm64-and-release.yml b/.github/workflows/buildArm64-and-release.yml index 2514903..f7ee631 100644 --- a/.github/workflows/buildArm64-and-release.yml +++ b/.github/workflows/buildArm64-and-release.yml @@ -32,6 +32,50 @@ jobs: echo "github.ref_name = ${{ github.ref_name }}"; echo "github.workspace = ${{ github.workspace }}"; + - name: "npm install -g lerna@6/yarn" + run: | + echo "======================================================================"; + echo "npm install -g lerna@6"; + echo "--------------------"; + npm install -g lerna@6; + + echo "======================================================================"; + echo "npm install -g yarn"; + echo "--------------------"; + npm install -g yarn; + + - name: "lerna -v | npm -v | yarn -v | yarn config list" + run: | + echo "======================================================================"; + echo "lerna -v"; + echo "--------------------"; + lerna -v; + + echo "======================================================================"; + echo "npm -v"; + echo "--------------------"; + npm -v; + + echo "======================================================================"; + echo "yarn -v"; + echo "--------------------"; + yarn -v; + + echo "======================================================================"; + echo "yarn config list"; + echo "--------------------"; + yarn config list; + + - name: "lerna bootstrap" + run: | + echo "======================================================================"; + dir || ls -lah; + + echo "======================================================================"; + echo "lerna bootstrap --npm-client=yarn"; + echo "--------------------"; + lerna bootstrap --npm-client=yarn; + - name: "Set up QEMU" id: qemu uses: docker/setup-qemu-action@v3 @@ -44,7 +88,6 @@ jobs: - name: "Build on 'arm64v8/ubuntu:20.04' OS" run: | docker run --rm \ - -v /home/runner/work/_temp/.npmrc:/root/.npmrc \ -v ${{ github.workspace }}:/workspace:rw --workdir=/workspace \ --platform linux/arm64 arm64v8/ubuntu:20.04 \ bash -exc 'apt-get update && \ @@ -54,12 +97,10 @@ jobs: apt update && \ apt install python3 -y && \ npm config list && \ - npm install -g lerna@6 && \ node -p "process.arch" && \ lerna -v && \ npm -v && \ ls -lah && \ - lerna bootstrap && \ cd packages/gui && \ ls -lah && \ npm run electron:build && \