Skip to content

Commit 6f2c492

Browse files
committed
refactor(publish): remove fallback to workflow version
Simplified the socket package.json generation to only use published versions from the npm registry. If a platform package doesn't exist in the registry, it's simply skipped rather than using a fallback. This ensures socket only references actually published binaries and makes the versioning logic cleaner and more predictable.
1 parent 7f67978 commit 6f2c492

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/publish-socketbin.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,8 @@ jobs:
462462
pkg.optionalDependencies[pkgName] = version;
463463
console.log(\`Using published version for \${pkgName}: \${version}\`);
464464
} catch (e) {
465-
// If package doesn't exist yet, use current workflow version
466-
pkg.optionalDependencies[pkgName] = '${{ steps.version.outputs.version }}';
467-
console.log(\`Package \${pkgName} not found in registry, using: ${{ steps.version.outputs.version }}\`);
465+
// Package doesn't exist yet - skip it
466+
console.log(\`Package \${pkgName} not found in registry, skipping\`);
468467
}
469468
}
470469

0 commit comments

Comments
 (0)