Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
fix(release): reserve beta GitHub Releases for CLI binaries (#5068)
Alberto Schiabel42e39df58738
diff --git a/.changeset/config.json b/.changeset/config.jsonindex 48897f83f..9177f3037 100644--- a/.changeset/config.json+++ b/.changeset/config.json@@ -7,7 +7,7 @@"access": "restricted","privatePackages": {"version": true,- "tag": true+ "tag": false},"baseBranch": "next","updateInternalDependencies": "patch",diff --git a/.github/workflows/ts.release.yml b/.github/workflows/ts.release.ymlindex 7afbf343f..ff7694367 100644--- a/.github/workflows/ts.release.yml+++ b/.github/workflows/ts.release.yml@@ -64,6 +64,9 @@ jobs:if: github.event_name != 'workflow_dispatch' # only run on master mergeswith:github-token: ${{ steps.app-token.outputs.token }}+ # SDKs publish to npm. The CLI binary workflow owns GitHub Releases.+ create-github-releases: false+ push-git-tags: truepublish-script: pnpm changeset:releasecommit-message: 'Release: update version'pr-title: 'Release: update version'diff --git a/test/release-workflow.test.ts b/test/release-workflow.test.tsindex 6136be42c..3dba7dec7 100644--- a/test/release-workflow.test.ts+++ b/test/release-workflow.test.ts@@ -1077,6 +1077,83 @@ esacrmSync(fakeBin, { recursive: true, force: true });}+// Private workspaces still receive version bumps, but must never get release tags.+{+ const fixtureDir = mkdtempSync(join(tmpdir(), 'composio-private-release-'));+ const packages = [+ { directory: 'sdk', name: '@composio/core', private: false },+ { directory: 'example', name: 'release-example', private: true },+ { directory: 'test', name: '@e2e-tests/release', private: true },+ ];+ try {+ mkdirSync(join(fixtureDir, '.changeset'), { recursive: true });+ writeFileSync(+ join(fixtureDir, 'package.json'),+ JSON.stringify({ name: 'private-release-fixture', private: true, workspaces: ['packages/*'] })+ );+ writeFileSync(join(fixtureDir, 'pnpm-workspace.yaml'), "packages:\n - 'packages/*'\n");+ writeFileSync(+ join(fixtureDir, '.changeset/config.json'),+ JSON.stringify({ ...changesetConfig, changelog: false, fixed: [], ignore: [] })+ );+ writeFileSync(+ join(fixtureDir, '.changeset/release.md'),+ ['---', ...packages.map(pkg => `"${pkg.name}": patch`), '---', '', 'Release fixture.'].join(+ '\n'+ )+ );+ for (const pkg of packages) {+ const directory = join(fixtureDir, 'packages', pkg.directory);+ mkdirSync(directory, { recursive: true });+ writeFileSync(+ join(directory, 'package.json'),+ JSON.stringify({ name: pkg.name, version: '0.1.0', private: pkg.private })+ );+ }+ const commands = [+ [changesetBinPath, ['version']],+ ['git', ['init', '--quiet', '--initial-branch=next']],+ ['git', ['config', 'user.name', 'Release test']],+ ['git', ['config', 'user.email', '[email protected]']],+ ['git', ['add', '.']],+ ['git', ['commit', '-qm', 'Prepare fixture']],+ ['git', ['tag', '@e2e-tests/[email protected]']],+ [changesetBinPath, ['tag']],+ ] as const;+ for (const [command, args] of commands) {+ const result = spawnSync(command, args, { cwd: fixtureDir, encoding: 'utf8' });+ if (result.status !== 0) {+ throw new Error(+ `private release fixture failed: ${command} ${args.join(' ')}\n${result.stderr}`+ );+ }+ }+ for (const pkg of packages) {+ const manifest = JSON.parse(+ readFileSync(join(fixtureDir, 'packages', pkg.directory, 'package.json'), 'utf8')+ );+ if (manifest.version !== '0.1.1') {+ throw new Error(`release must still version ${pkg.name}, got ${manifest.version}`);+ }+ }+ const tags = spawnSync('git', ['tag', '--list'], { cwd: fixtureDir, encoding: 'utf8' });+ if (+ tags.status !== 0 ||+ tags.stdout.trim() !== '@composio/[email protected]\n@e2e-tests/[email protected]'+ ) {+ throw new Error(+ `release must tag only public SDK updates and preserve existing tags, got:\n${tags.stdout}`+ );+ }+ } finally {+ rmSync(fixtureDir, { recursive: true, force: true });+ }+}++if (!tsReleaseWorkflow.includes('create-github-releases: false')) {+ throw new Error('SDK publication must not create GitHub Releases; the CLI workflow owns them');+}+// A core minor release must not force every provider package to 1.0.0 while the// provider peer range still accepts the new core version. This protects the// @composio/core 0.10.0 → 0.11.0 release train from accidentally promotingdiff --git a/ts/scripts/changeset-release.sh b/ts/scripts/changeset-release.shindex 4014d18ef..cb76dcdec 100755--- a/ts/scripts/changeset-release.sh+++ b/ts/scripts/changeset-release.sh@@ -2,10 +2,9 @@set -euo pipefail# changesets/action v2 reads Changesets v3's NDJSON events from-# CHANGESETS_OUTPUT. The CLI binary workflow owns @composio/cli GitHub Releases-# because those releases must include platform binary assets. Remove only that-# package's git-tag event so changesets/action publishes and releases every-# other package without creating an empty @composio/cli GitHub Release.+# CHANGESETS_OUTPUT. Keep @composio/cli tags owned by the CLI binary workflow.+# Public SDK package tags still accompany npm publication; the SDK workflow+# disables GitHub Release creation, and Changesets does not tag private packages.filtered_output_file=$(mktemp)trap 'rm -f "$filtered_output_file"' EXIT