Skip to content

Commit 0dfcdea

Browse files
authored
Label React syncs in GitHub with type: react-sync (#67710)
1 parent eb23134 commit 0dfcdea

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/.react-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
19.0.0-rc-6230622a1a-20240610

.github/labeler.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"packages/next-swc/**",
7272
"packages/next/**",
7373
"packages/react-refresh-utils/**"
74-
]
74+
],
75+
"type: react-sync": [".github/.react-version"]
7576
}
7677
}

scripts/sync-react.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ Or run this command again without the --no-install flag to do both automatically
177177
)
178178
}
179179

180+
await fsp.writeFile(path.join(cwd, '.github/.react-version'), newVersionStr)
181+
180182
console.log(
181183
`Successfully updated React from ${baseSha} to ${newSha}.\n` +
182184
`Don't forget to find & replace all references to the React version '${baseVersionStr}' with '${newVersionStr}':\n` +

0 commit comments

Comments
 (0)