Skip to content

Conversation

@blakef
Copy link
Collaborator

@blakef blakef commented Aug 19, 2024

This feature needs to be released with react-native-community/cli#2475,
which decouples the 1:1 release model we have for templates and
react-native.

Switching users to this is going to be difficult, and should only be
rolled asap before 0.76. If we have to release a template fix, then only
users with the latest CLI will be able to use that and subsequent
versions.

I'm not sure of how to clearly communicate that to users.

WARNING: Do not merge until:

  1. We have updated the calling step in react-native release step asks the template to publish No changes needed here.
  2. We agree on a version of react-native that wants this to go live. When we do that, if it's 0.75 / 0.74 then also merge it into the 0.75-stable, etc... branch. 0.75.2
  3. The CLI change (feat: determine react-native → template from npm registry data cli#2475) is committed and published.

@blakef blakef requested a review from cipolleschi August 19, 2024 12:49
@cortinico
Copy link
Member

I'd like for @szymonrybczak to chime on this one and get his opinion here

Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change makes sense to me. I left a few comments but they are mainly nits.
Accepting to unblock.

inputs:
version:
description: "The version of the template we want to release. For example 0.75.0-rc.0"
description: "The version of the react-native we want to release. For example 0.75.0-rc.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't want to release a version of react-native, but a version of the template, don't we?

Copy link
Collaborator Author

@blakef blakef Aug 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe:

"The version of react-native we want the template to use in this release. For example 0.75.0-rc.0."

Is a clearer description of what I intended here.

Copy link
Collaborator

@szymonrybczak szymonrybczak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, let's answer @cipolleschi's comments and we're good to go!

This feature needs to be released with react-native-community/cli#2475,
which decouples the 1:1 release model we have for templates and
react-native.

Switching users to this is going to be difficult, and should only be
rolled asap before 0.76. If we have to release a template fix, then only
users with the latest CLI will be able to use that and subsequent
versions.

I'm not sure of how to clearly communicate that to users.

- Added tests
- Set dry_run to default
@blakef blakef force-pushed the feat/support-new-template-releases branch from fb773c5 to df950fb Compare September 8, 2024 09:03
@cipolleschi cipolleschi merged commit b46b99f into main Sep 8, 2024
@cipolleschi cipolleschi deleted the feat/support-new-template-releases branch September 8, 2024 11:56
blakef added a commit that referenced this pull request Sep 8, 2024
…43)

This feature needs to be released with react-native-community/cli#2475,
which decouples the 1:1 release model we have for templates and
react-native.

Switching users to this is going to be difficult, and should only be
rolled asap before 0.76. If we have to release a template fix, then only
users with the latest CLI will be able to use that and subsequent
versions.

I'm not sure of how to clearly communicate that to users.

- Added tests
- Set dry_run to default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants