diff --git a/.github/labeler.json b/.github/labeler.json index 50efeddaa21b5..7344082c8dc30 100644 --- a/.github/labeler.json +++ b/.github/labeler.json @@ -70,6 +70,7 @@ "packages/next-swc/**", "packages/next/**", "packages/react-refresh-utils/**" - ] + ], + "type: react-sync": [".react-version"] } } diff --git a/.react-version b/.react-version new file mode 100644 index 0000000000000..a9870eb754cd3 --- /dev/null +++ b/.react-version @@ -0,0 +1 @@ +19.0.0-rc-a26e3f403e-20240611 \ No newline at end of file diff --git a/scripts/sync-react.js b/scripts/sync-react.js index 011755bbf52af..f57ade32f3a94 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, '.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` +