Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change usage of 'next' version of @react-native-community/template and react-native packages to specific react-native version #13446

Closed
Yajur-Grover opened this issue Jul 15, 2024 · 1 comment · Fixed by #13632

Comments

@Yajur-Grover
Copy link
Contributor

Yajur-Grover commented Jul 15, 2024

Summary

Due to Meta moving the template package outside the react-native repo and into the @react-native-community/template package, there is no matching nightly version for the new template package for react-native@0.75.0-nightly-20240618-5df5ed1a8, which is breaking the current 6/18 integration. In order to unblock the integration, the scripts that run the react-native init command have been modified to use the next version of the @react-native-community/template package, as that is the only one with a matching react-native version.

This PR adds a job that will publish a nightly build to the @react-native-community/template package every time a new react-native package is published. Once the react-native-windows repo is integrated up to a date that has a matching react-native and @react-native-community/template nightly build, we will revert the usage of 'next' to the current react-native version being used in the repo.

Additionally, a similar change had to be made in the react-native-windows-init.yml file to use the next version of the react-native package instead of the 6/18 nightly build when running the create-react-native-library init script. Once we have integrated to the point that the nightly build works with the new template package, we should revert this change.

Forks made:
5e9e7e3
e534281

Motivation

Unblock CI to allow jobs with react-native init to run successfully.

Basic Example

No response

Open Questions

No response

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) label Jul 15, 2024
@Yajur-Grover Yajur-Grover changed the title Change usage of 'next' version of @react-native-community/template to specific react-native version Change usage of 'next' version of @react-native-community/template and react-native packages to specific react-native version Jul 16, 2024
@jonthysell jonthysell removed the Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) label Jul 18, 2024
@jonthysell jonthysell added this to the Next milestone Jul 18, 2024
@Yajur-Grover
Copy link
Contributor Author

From the NPM page of the react-native package, the earliest nightly version of @react-native-community/template that should allow this change to be reverted is the 7/16, however after that version, there is no nightly version till 8/7: https://www.npmjs.com/package/@react-native-community/template?activeTab=versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants