Skip to content

Commit

Permalink
Label React syncs in GitHub with type: react-sync (#67710)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Jul 22, 2024
1 parent eb23134 commit 0dfcdea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/.react-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
19.0.0-rc-6230622a1a-20240610
3 changes: 2 additions & 1 deletion .github/labeler.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"packages/next-swc/**",
"packages/next/**",
"packages/react-refresh-utils/**"
]
],
"type: react-sync": [".github/.react-version"]
}
}
2 changes: 2 additions & 0 deletions scripts/sync-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -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` +
Expand Down

0 comments on commit 0dfcdea

Please sign in to comment.