Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label React syncs in GitHub with type: react-sync #67710

Merged
merged 2 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/.react-version
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Placing this inside .github because it's purely a Github concern and I didn't want to clutter top-level dotfiles any further.

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
Loading