chore(release): update version to 0.5.0-rc.2

This commit is contained in:
ABCxFF 2026-03-25 05:13:47 +00:00
parent e9fabbfe64
commit cb42971b56
46 changed files with 87 additions and 80 deletions

View file

@ -148,7 +148,7 @@ async function updateVersionReferences(opts: ReleaseOpts, oldVersion: string, ol
const original = content;
// Replace minor channel references (e.g. sandbox-agent@0.3.x -> sandbox-agent@0.4.x)
// Replace minor channel references (e.g. sandbox-agent@0.5.x -> sandbox-agent@0.5.x)
content = content.replaceAll(`sandbox-agent@${oldMinorChannel}`, `sandbox-agent@${newMinorChannel}`);
content = content.replaceAll(`@sandbox-agent/cli@${oldMinorChannel}`, `@sandbox-agent/cli@${newMinorChannel}`);
content = content.replaceAll(`@sandbox-agent/react@${oldMinorChannel}`, `@sandbox-agent/react@${newMinorChannel}`);
@ -156,6 +156,13 @@ async function updateVersionReferences(opts: ReleaseOpts, oldVersion: string, ol
// Replace install script URL channel
content = content.replaceAll(`releases.rivet.dev/sandbox-agent/${oldMinorChannel}/`, `releases.rivet.dev/sandbox-agent/${newMinorChannel}/`);
// If references drifted (for example Cargo.toml version was bumped without updating docs),
// normalize any other pinned minor-channel references to the release's channel.
content = content.replaceAll(/sandbox-agent@0\.\d+\.x/g, `sandbox-agent@${newMinorChannel}`);
content = content.replaceAll(/@sandbox-agent\/cli@0\.\d+\.x/g, `@sandbox-agent/cli@${newMinorChannel}`);
content = content.replaceAll(/@sandbox-agent\/react@0\.\d+\.x/g, `@sandbox-agent/react@${newMinorChannel}`);
content = content.replaceAll(/releases\.rivet\.dev\/sandbox-agent\/0\.\d+\.x\//g, `releases.rivet.dev/sandbox-agent/${newMinorChannel}/`);
// Replace Docker image tags (rivetdev/sandbox-agent:<anything>-full -> rivetdev/sandbox-agent:<version>-full)
content = content.replaceAll(
new RegExp(`rivetdev/sandbox-agent:[0-9]+\\.[0-9]+\\.[0-9]+(?:-[a-zA-Z0-9.]+)?-full`, "g"),