Skip to content

Commit

Permalink
Update paths in a new setup to fix nightlies
Browse files Browse the repository at this point in the history
Summary:
Changelog: [Internal]

- We should be copying `/packages/react-native/package.json`, not root `package.json`
- Updating CircleCI config's target directory where hermes artifacts should be copied

Differential Revision: D44214309

fbshipit-source-id: e354ac7c489b5d6a14e0ecb196cb9c801c27126f
  • Loading branch information
hoxyq authored and facebook-github-bot committed Mar 20, 2023
1 parent 0ab22a7 commit 25c8546
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1511,8 +1511,8 @@ jobs:
cp -r $HERMES_WS_DIR/win64-bin/* ./packages/react-native/sdks/hermesc/win64-bin/.
cp -r $HERMES_WS_DIR/linux64-bin/* ./packages/react-native/sdks/hermesc/linux64-bin/.
mkdir -p ./ReactAndroid/external-artifacts/artifacts/
cp $HERMES_WS_DIR/hermes-runtime-darwin/hermes-ios-debug.tar.gz ./ReactAndroid/external-artifacts/artifacts/hermes-ios-debug.tar.gz
cp $HERMES_WS_DIR/hermes-runtime-darwin/hermes-ios-release.tar.gz ./ReactAndroid/external-artifacts/artifacts/hermes-ios-release.tar.gz
cp $HERMES_WS_DIR/hermes-runtime-darwin/hermes-ios-debug.tar.gz ./packages/react-native/ReactAndroid/external-artifacts/artifacts/hermes-ios-debug.tar.gz
cp $HERMES_WS_DIR/hermes-runtime-darwin/hermes-ios-release.tar.gz ./packages/react-native/ReactAndroid/external-artifacts/artifacts/hermes-ios-release.tar.gz
- run_yarn
- download_gradle_dependencies
Expand Down
5 changes: 4 additions & 1 deletion scripts/set-rn-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ const tmpVersioningFolder = fs.mkdtempSync(
echo(`The temp versioning folder is ${tmpVersioningFolder}`);

saveFiles(
['package.json', 'packages/react-native/template/package.json'],
[
'packages/react-native/package.json',
'packages/react-native/template/package.json',
],
tmpVersioningFolder,
);

Expand Down

0 comments on commit 25c8546

Please sign in to comment.