@smbcloud / cli / commits / 231aae5

fix release script

Seto Elkahfi committed Aug 9, 2026 at 13:28 UTC 231aae57b367c9c87d2cff086ed8c1bf74200af3
6 files changed +16 -6
.github/workflows/ci.yml
+1 -1
@@ -243,7 +243,7 @@ jobs:
243 - name: Setup Ruby
244 uses: ruby/setup-ruby@v1
245 with:
246 - ruby-version: "3.4.2"
246 + ruby-version: .ruby-version
247 bundler-cache: true
248 working-directory: sdk/gems/auth
249
.github/workflows/release-sdk-gem.yml
+3 -3
@@ -117,7 +117,7 @@ jobs:
117 - name: Setup Ruby
118 uses: ruby/setup-ruby@v1
119 with:
120 - ruby-version: "3.4.2"
120 + ruby-version: .ruby-version
121 bundler-cache: true
122 working-directory: sdk/gems/auth
123
@@ -169,7 +169,7 @@ jobs:
169 - name: Setup Ruby
170 uses: ruby/setup-ruby@v1
171 with:
172 - ruby-version: "3.4.2"
172 + ruby-version: .ruby-version
173 bundler-cache: true
174 working-directory: sdk/gems/auth
175
@@ -231,7 +231,7 @@ jobs:
231 if: steps.rubygems-check.outputs.exists != 'true'
232 uses: ruby/setup-ruby@v1
233 with:
234 - ruby-version: "3.4.2"
234 + ruby-version: .ruby-version
235
236 - name: Configure RubyGems credentials
237 if: steps.rubygems-check.outputs.exists != 'true'
.ruby-version renamed
scripts/sync-release-version.mjs
+12
@@ -3,6 +3,7 @@ import { resolve } from "node:path";
3
4 const repoRoot = resolve(import.meta.dirname, "..");
5 const cliCargoTomlPath = resolve(repoRoot, "crates/cli/Cargo.toml");
6 +const workspaceCargoTomlPath = resolve(repoRoot, "Cargo.toml");
7 const npmCliPackageJsonPath = resolve(repoRoot, "npm/smbcloud-cli/package.json");
8 const npmCliPackageLockPath = resolve(repoRoot, "npm/smbcloud-cli/package-lock.json");
9 const nugetCliProjectPath = resolve(repoRoot, "nuget/smbcloud-cli/SmbCloud.Cli.csproj");
@@ -60,6 +61,17 @@ const [major = "0", minor = "0"] = releaseVersion.split(".");
61 const rubySdkRequirement = `${major}.${minor}`;
62 const updatedPaths = [];
63
64 +if (
65 + updateFile(workspaceCargoTomlPath, (content) =>
66 + content.replace(
67 + /^([\w-]+\s*=\s*\{\s*version\s*=\s*")[^"]+("\s*,\s*path\s*=\s*"crates\/[^"]+"\s*\})/gm,
68 + `$1${releaseVersion}$2`,
69 + ),
70 + )
71 +) {
72 + updatedPaths.push(workspaceCargoTomlPath);
73 +}
74 +
75 if (
76 updateFile(npmCliPackageJsonPath, (content) => {
77 const parsed = JSON.parse(content);
sdk/gems/auth/.ruby-version deleted
-1
@@ -1 +0,0 @@
1 -3.4.2
sdk/gems/email/.ruby-version deleted
-1
@@ -1 +0,0 @@
1 -3.4.2