From 8dab7240a6239899f36208e2c3b91b0a55373b70 Mon Sep 17 00:00:00 2001 From: eps1lon Date: Fri, 12 Jul 2024 16:02:48 +0200 Subject: [PATCH] Move `.react-version` since it's purely a Github concern --- .react-version => .github/.react-version | 0 .github/labeler.json | 2 +- scripts/sync-react.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename .react-version => .github/.react-version (100%) diff --git a/.react-version b/.github/.react-version similarity index 100% rename from .react-version rename to .github/.react-version diff --git a/.github/labeler.json b/.github/labeler.json index 7c9e20c0524ca..340159f7919ee 100644 --- a/.github/labeler.json +++ b/.github/labeler.json @@ -72,6 +72,6 @@ "packages/next/**", "packages/react-refresh-utils/**" ], - "type: react-sync": [".react-version"] + "type: react-sync": [".github/.react-version"] } } diff --git a/scripts/sync-react.js b/scripts/sync-react.js index f57ade32f3a94..7fd91473520ae 100644 --- a/scripts/sync-react.js +++ b/scripts/sync-react.js @@ -177,7 +177,7 @@ Or run this command again without the --no-install flag to do both automatically ) } - await fsp.writeFile(path.join(cwd, '.react-version'), newVersionStr) + await fsp.writeFile(path.join(cwd, '.github/.react-version'), newVersionStr) console.log( `Successfully updated React from ${baseSha} to ${newSha}.\n` +