Skip to content

refactor: automation to tag and version the template when releasing - #30

Merged
blakef merged 3 commits into
mainfrom
feat/tag-on-release-branches
Jun 21, 2024
Merged

refactor: automation to tag and version the template when releasing#30
blakef merged 3 commits into
mainfrom
feat/tag-on-release-branches

Conversation

@blakef

Copy link
Copy Markdown
Collaborator

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
Comment threadscripts/lib/lib.js
@@ -0,0 +1,25 @@
const {execSync} = require('child_process');

Copy link
Copy Markdown
CollaboratorAuthor

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.

@blakefblakef changed the title refactor: move scripts into a ./scripts folderrefactor: automation to tag and version the template when releasingJun 21, 2024
@blakef
blakef merged commit 893dcc8 into mainJun 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
Copy Markdown
Member

I've picked this on the release branch:
https://github.com/react-native-community/template/tree/0.75-stable

Sign up for freeto 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.

3 participants

@blakef@cortinico@cipolleschi