-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
Improve change-version script #38983
Conversation
c036755
to
088a6b4
Compare
e27dcff
to
c160cfe
Compare
c160cfe
to
d0abc77
Compare
d0abc77
to
e55e441
Compare
e55e441
to
10eebe2
Compare
Only replace the version in specific files instead of blindly all repo files
10eebe2
to
d4792ea
Compare
console.error(error) | ||
process.exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.error(error) | |
process.exit(1) | |
console.error(error) | |
process.exit(1) |
Suppose we could use throw error
here, too?
await Promise.all( | ||
files.map(file => replaceRecursively(file, oldVersion, newVersion)) | ||
FILES.map(file => replaceRecursively(file, oldVersion, newVersion)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need the recursive replacement?
@GeoSot The changes are based on the script we use in bootstrap-icons: https://github.com/twbs/icons/blob/main/build/bump-version.mjs So, the plan is to keep them in sync for now. |
In this case, I think we are good to go |
Only replace the version in specific files instead of blindly all repo files
Only replace the version in specific files instead of blindly all repo files
EDIT: let's merge this after #38984