Skip to content

Conversation

@blakef
Copy link
Collaborator

@blakef blakef commented Jun 20, 2024

Summary:

There was a discussion on Discord, where we looked at implementing what was originally proposed. This is that implementation. It'll need to land with a cli change to use the update template + tagging.

  • feat: add mutating react-native & @react-native/ packages

    Support for doing this on nightly and release workflows

  • feat: added node ./scripts/updateReactNativeVersion.js

    Sets the version of react-native and the @react-native/ scoped packages.
    It will also normalize tags to concrete versions. E.g. latest -> 0.74.2

  • refactor: move scripts into a ./scripts folder

Changelog:

[Internal] Update react-native and @react-native packages in the template when publishing to npm.

Test Plan:

Not sure really, have run the script locally and it updates as expected. For the GHA actions 👀.

blakef added 3 commits June 20, 2024 15:04
Update GHA scripts to point to correct folder
Sets the version of react-native and the @react-native/ scoped packages.
It will also normalize tags to concrete versions. E.g. latest -> 0.74.2
Support for doing this on nightly and release workflows
@@ -0,0 +1,25 @@
const {execSync} = require('child_process');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Most of this code was moved from the CLI. See react-native-community/cli/pull/2422 for the matching change in CLI, where these were removed.

@blakef blakef changed the title refactor: move scripts into a ./scripts folder refactor: automation to tag and version the template when releasing Jun 21, 2024
@blakef blakef merged commit 893dcc8 into main Jun 21, 2024
@blakef blakef deleted the feat/tag-on-release-branches branch June 21, 2024 12:57
cortinico pushed a commit that referenced this pull request Jun 21, 2024
)

There was a discussion on Discord, where we looked at implementing what was originally proposed.  This is that implementation.  It'll need to land with a [cli](react-native-community/cli#2422) change to use the update template + tagging.

- feat: add mutating react-native & @react-native/ packages

    Support for doing this on nightly and release workflows

- feat: added node ./scripts/updateReactNativeVersion.js <version>

    Sets the version of react-native and the @react-native/ scoped packages.
    It will also normalize tags to concrete versions. E.g. latest -> 0.74.2

- refactor: move scripts into a ./scripts folder
@cortinico
Copy link
Member

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.

4 participants