From 5e298340fd431878d4e5da5ce40cb77e3d9695f3 Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Mon, 12 Feb 2024 19:52:06 +0000 Subject: [PATCH] chore: chown root npm folder --- .github/workflows/build-and-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 2996a0fd..6df46f55 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -214,10 +214,10 @@ jobs: uses: docker/setup-buildx-action@v3 - if: runner.os == 'Linux' && matrix.docker == true && matrix.musl != true && matrix.arch == 'arm64' name: test arm64 - run: docker run -v $PWD:/home/node/app --platform linux/${{ matrix.arch }} --rm node:${{ matrix.node-version }} bin/bash -c 'npm install -g npm@10.4.0 && apt install -y shared-mime-info && cd /home/node/app && ./script/ci/download-standalone-and-test.sh' + run: docker run -v $PWD:/home/node/app --platform linux/${{ matrix.arch }} --rm node:${{ matrix.node-version }} bin/bash -c 'chown -R 1001:127 "/root/.npm" && npm install -g npm@10.4.0 && apt install -y shared-mime-info && cd /home/node/app && ./script/ci/download-standalone-and-test.sh' - if: runner.os == 'Linux' && matrix.docker == true && matrix.musl == true name: test linux ${{ matrix.arch }} musl - run: docker run -v $PWD:/home/node/app --platform linux/${{ matrix.arch }} --rm node:${{ matrix.node-version }}-alpine bin/sh -c 'npm install -g npm@10.4.0 && apk add bash curl shared-mime-info && cd /home/node/app && ./script/ci/download-standalone-and-test.sh' + run: docker run -v $PWD:/home/node/app --platform linux/${{ matrix.arch }} --rm node:${{ matrix.node-version }}-alpine bin/sh -c 'chown -R 1001:127 "/root/.npm" && npm install -g npm@10.4.0 && apk add bash curl shared-mime-info && cd /home/node/app && ./script/ci/download-standalone-and-test.sh' # release_dry_run: # runs-on: ubuntu-latest