Closed
Description
Problem
When we prep a release, we run a script locally called release-prep.sh
.
In it, there is a line that uses rg
and sd
to bump the version across the project (i.e. 4.0.0 -> 4.0.1).
Unfortunately, this means if there is a dependency with the same version we're bumping, it will bump that too 😅
Here is the exact line where we do this:
https://github.com/coder/code-server/blob/main/ci/build/release-prep.sh#L84
Example
Solution
It might be worth breaking this into two lines:
- first
rg
->sd
replaces the first instance inpackage.json
- ignores
package.json
but updates the other files (i.e. markdown)
To summarize, we should split the current functionality into two calls:
- update the
package.json
(only first string it finds) - update the markdown files