20:尝试使用宿主机的环境变量和npm配置

王良 2024-11-08 22:08:48 +08:00
parent 4c17262514
commit 5c545d88a9
1 changed files with 0 additions and 4 deletions

View File

@ -31,7 +31,6 @@ jobs:
echo "github.ref = ${{ github.ref }}";
echo "github.ref_name = ${{ github.ref_name }}";
echo "github.workspace = ${{ github.workspace }}";
echo "env.NODE_AUTH_TOKEN = ${{ env.NODE_AUTH_TOKEN }}";
- name: "Set up QEMU"
id: qemu
@ -48,7 +47,6 @@ jobs:
-v ${{ github.workspace }}:/workspace:rw --workdir=/workspace \
-v /home/runner/work/_temp:/home/runner/work/_temp:rw \
-e NPM_CONFIG_USERCONFIG=/home/runner/work/_temp/.npmrc
-e NODE_AUTH_TOKEN=${{ env.NODE_AUTH_TOKEN }}
--platform linux/arm64 arm64v8/ubuntu:20.04 \
bash -exc 'apt-get update && \
apt-get install curl -y && \
@ -58,8 +56,6 @@ jobs:
apt install python3 -y && \
npm config set userconfig "/home/runner/work/_temp/.npmrc" && \
npm config set "always-auth" false && \
npm config set "@docmirror:registry" https://npm.pkg.github.com && \
npm config set "//npm.pkg.github.com/:_authToken" ${{ env.NODE_AUTH_TOKEN }} && \
npm config list && \
npm install -g lerna@6 && \
node -p "process.arch" && \