From c43df2ce10b0328cbef6853ad5cf2771daa92f52 Mon Sep 17 00:00:00 2001 From: Rauno Viskus Date: Mon, 28 Jun 2021 11:53:36 +0300 Subject: [PATCH] test: fix npm cache permissions on cache hit --- .github/workflows/unit-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 5c9b3f0faae..26e75d0cabd 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -38,13 +38,14 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' run: | npm install --ignore-scripts - chown -R 1001:121 "/github/home/.npm" # fix npm cache permissions for npm v7 + chown -R 1001:121 "/github/home/.npm" || true # fix npm cache permissions for npm v7 if cache exists npx lerna bootstrap --no-ci npm run compile - name: Install and Build (cache hit) 🔧 if: steps.cache.outputs.cache-hit == 'true' run: | + chown -R 1001:121 "/github/home/.npm" # fix npm cache permissions for npm v7 npm ci --ignore-scripts npx lerna bootstrap npm run compile