diff --git a/.github/.react-version b/.github/.react-version new file mode 100644 index 0000000000000..2de43dcf77c1f --- /dev/null +++ b/.github/.react-version @@ -0,0 +1 @@ +19.0.0-rc-6230622a1a-20240610 \ No newline at end of file diff --git a/.github/labeler.json b/.github/labeler.json index 0f1575da620bb..c0c57e7820161 100644 --- a/.github/labeler.json +++ b/.github/labeler.json @@ -71,6 +71,7 @@ "packages/next-swc/**", "packages/next/**", "packages/react-refresh-utils/**" - ] + ], + "type: react-sync": [".github/.react-version"] } } diff --git a/scripts/sync-react.js b/scripts/sync-react.js index 011755bbf52af..7fd91473520ae 100644 --- a/scripts/sync-react.js +++ b/scripts/sync-react.js @@ -177,6 +177,8 @@ Or run this command again without the --no-install flag to do both automatically ) } + await fsp.writeFile(path.join(cwd, '.github/.react-version'), newVersionStr) + console.log( `Successfully updated React from ${baseSha} to ${newSha}.\n` + `Don't forget to find & replace all references to the React version '${baseVersionStr}' with '${newVersionStr}':\n` +