Skip to content

Commit 23e3171

Browse files
committed
fix(release): fix broken version updates
1 parent 7ccbd3e commit 23e3171

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

scripts/release/update_version.ts

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,22 @@ export async function updateVersion(opts: ReleaseOpts) {
2828
find: /"version": ".*"/,
2929
replace: `"version": "${opts.version}"`,
3030
},
31-
{
32-
path: "sdks/api/fern/definition/api.yml",
33-
find: /version:\n\s\sheader: "X-API-Version"\n\s\sdefault: ".*"\n\s\svalues: \[".*"\]/,
34-
replace: `version:\n header: "X-API-Version"\n default: "${opts.version}"\n values: ["${opts.version}"]`,
35-
},
36-
{
37-
path: "site/src/content/docs/cloud/install.mdx",
38-
find: /rivet-cli@.*/g,
39-
replace: `rivet-cli@${opts.version}`,
40-
},
41-
{
42-
path: "site/src/content/docs/cloud/install.mdx",
43-
find: /RIVET_CLI_VERSION=.*/g,
44-
replace: `RIVET_CLI_VERSION=${opts.version}`,
45-
},
46-
{
47-
path: "site/src/content/docs/cloud/install.mdx",
48-
find: /\$env:RIVET_CLI_VERSION = ".*"/g,
49-
replace: `$env:RIVET_CLI_VERSION = "${opts.version}"`,
50-
},
31+
// TODO: Update docs with pinned version
32+
// {
33+
// path: "site/src/content/docs/cloud/install.mdx",
34+
// find: /rivet-cli@.*/g,
35+
// replace: `rivet-cli@${opts.version}`,
36+
// },
37+
// {
38+
// path: "site/src/content/docs/cloud/install.mdx",
39+
// find: /RIVET_CLI_VERSION=.*/g,
40+
// replace: `RIVET_CLI_VERSION=${opts.version}`,
41+
// },
42+
// {
43+
// path: "site/src/content/docs/cloud/install.mdx",
44+
// find: /\$env:RIVET_CLI_VERSION = ".*"/g,
45+
// replace: `$env:RIVET_CLI_VERSION = "${opts.version}"`,
46+
// },
5147
];
5248

5349
// Substitute all files

0 commit comments

Comments
 (0)