Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/skills/scripts/build-skill-adapters.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,13 @@ function resolveAdapterDistTag() {
return 'next';
}

// The -rc/-next check above is the real prerelease signal. A release branch still
// carries stable versions until its RC bump lands, and its committed mirrors are
// main's stable payload, so pinning @next on the branch name alone made every push
// to release/** fail the committed-skills guard. Use build:adapters:branch when you
// explicitly want the next-channel payload.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
const branch = process.env.GITHUB_REF_NAME || process.env.BRANCH_NAME || readGitBranch();
return (branch === 'next' || branch?.startsWith('release/')) ? 'next' : undefined;
return branch === 'next' ? 'next' : undefined;
}

function readPackageVersion(packagePath) {
Expand Down
4 changes: 3 additions & 1 deletion packages/skills/tests/ai-context-generator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ function resolveAdapterDistTag(repoRoot: string): string | undefined {
path.join(repoRoot, 'packages/skills/package.json'),
].map((packagePath) => JSON.parse(fs.readFileSync(packagePath, 'utf8')).version as string);

if (versions.some((version) => version.includes('-next'))) {
// ponytail: hand-copied from resolveAdapterDistTag in scripts/build-skill-adapters.js.
// It has already drifted twice; share one module if it drifts again.
if (versions.some((version) => version.includes('-next') || version.includes('-rc'))) {
return 'next';
}

Expand Down
Loading