From e480f89ae3f3d45595be14ad52ac9d1ba0dec8b6 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Wed, 9 Aug 2023 10:12:50 -0700 Subject: [PATCH] Store publishing log when publishing a new version of React Native fails (#38846) Summary: This change adds a step to store the publishing logs as artifacts when the publishing fails, so that we can analyze what happened without relaunching the job ## Changelog: [Internal] - Add step to upload publishing logs Pull Request resolved: https://github.com/facebook/react-native/pull/38846 Test Plan: CircleCI stays green Reviewed By: cortinico Differential Revision: D48183313 Pulled By: cipolleschi fbshipit-source-id: 72fa753c094224d4cb3fea952a75591688ea7822 --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index dd0730e1671..a8fa1fc263d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1905,6 +1905,9 @@ jobs: command: zip -r /tmp/maven-local.zip /tmp/maven-local - store_artifacts: path: /tmp/maven-local.zip + - store_artifacts: + when: on_fail + path: /root/.npm/_logs - persist_to_workspace: root: /tmp paths: