From 9fa6c6fdff4b3b5700b0a1f330e6f766e0a49804 Mon Sep 17 00:00:00 2001 From: Jim Blanchard Date: Thu, 30 May 2024 10:29:24 -0500 Subject: [PATCH] chore: Store NPM logs as artifacts in CI (#13447) chore: Enable NPM logs in CI --- .github/actions/load-verdaccio-with-amplify-js/action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/actions/load-verdaccio-with-amplify-js/action.yml b/.github/actions/load-verdaccio-with-amplify-js/action.yml index 44d1068b076..c8cd349cb86 100644 --- a/.github/actions/load-verdaccio-with-amplify-js/action.yml +++ b/.github/actions/load-verdaccio-with-amplify-js/action.yml @@ -48,3 +48,11 @@ runs: scripts/retry-yarn-script.sh -s publish:verdaccio -n 5 -r true yarn info aws-amplify@unstable description npm info aws-amplify@unstable version + - name: Upload artifact + uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 https://github.com/actions/upload-artifact/commit/0b7f8abb1508181956e8e162db84b466c27e18ce + if: failure() + with: + name: ${{ inputs.test_name }}-npm-log + if-no-files-found: ignore + path: /Users/runner/.npm/_logs/ + retention-days: 3