mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 03:30:40 +00:00
ci(sdk-release): fix CLI package path handling
- Remove dist/ directory requirement from workflow (CLI files are in package root) - Update bundle-cli-from-npm.js to use package root directly instead of package/dist Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
20b54c78de
commit
39884cc6a1
2 changed files with 6 additions and 12 deletions
10
.github/workflows/release-sdk.yml
vendored
10
.github/workflows/release-sdk.yml
vendored
|
|
@ -188,15 +188,9 @@ jobs:
|
|||
cd "${CLI_TMP_DIR}"
|
||||
tar -xzf qwen-code-qwen-code-*.tgz
|
||||
|
||||
# Verify dist exists
|
||||
if [[ ! -d "${CLI_TMP_DIR}/package/dist" ]]; then
|
||||
echo "::error::CLI package does not contain dist/ directory"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "CLI package extracted to: ${CLI_TMP_DIR}/package"
|
||||
echo "CLI dist contents:"
|
||||
ls -la "${CLI_TMP_DIR}/package/dist/"
|
||||
echo "CLI package contents:"
|
||||
ls -la "${CLI_TMP_DIR}/package/"
|
||||
|
||||
- name: 'Build CLI from source'
|
||||
id: 'cli_build'
|
||||
|
|
|
|||
|
|
@ -32,13 +32,13 @@ function main() {
|
|||
);
|
||||
}
|
||||
|
||||
const cliDistDir = join(cliPackagePath, 'dist');
|
||||
const cliDistDir = cliPackagePath;
|
||||
const sdkCliDistDir = join(sdkRoot, 'dist', 'cli');
|
||||
|
||||
// Verify CLI dist exists
|
||||
// Verify CLI package exists
|
||||
if (!existsSync(cliDistDir)) {
|
||||
throw new Error(
|
||||
`[sdk bundle] CLI dist not found at: ${cliDistDir}. ` +
|
||||
`[sdk bundle] CLI package not found at: ${cliDistDir}. ` +
|
||||
`Make sure the CLI package was downloaded and extracted correctly.`,
|
||||
);
|
||||
}
|
||||
|
|
@ -55,7 +55,7 @@ function main() {
|
|||
mkdirSync(sdkCliDistDir, { recursive: true });
|
||||
|
||||
console.log('[sdk bundle] Copying CLI from npm package...');
|
||||
console.log(`[sdk bundle] Source: ${cliDistDir}`);
|
||||
console.log(`[sdk bundle] Source: ${cliDistDir} (package root)`);
|
||||
console.log(`[sdk bundle] Destination: ${sdkCliDistDir}`);
|
||||
|
||||
// Copy main CLI file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue