A framework for building native applications using React
Do not depend on an ENV variable when publishing and setting the RN version (#34746)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/34746 The changes made in https://github.com/facebook/react-native/pull/34694 introduced the need to have the env variable TMP_PUBLISH_DIR for the publishing and set-rn-version scripts to work. This break any usage of set-rn-version when the env variable is not set upfront. With this change, we are creating a temp folder in the scope that requires it (e.g. set-rn-version.js) and then passing the path to the save/revert functions. ## Changelog [Internal] [Added] - Do not depend on an ENV variable when publishing and setting the RN version. Reviewed By: cipolleschi Differential Revision: D39683565 fbshipit-source-id: 21d85d1c16c4cb7324636ceb5eba626ff8cbb775
V
Vincenzo Vitale committed
10e47b891aad8cb1d79a2fccd68edeeefb31756f
Parent: 34db2d4
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
on 9/22/2022, 2:34:50 PM