Merge pull request #2801 from QwenLM/chanel-plugin-example-private
Some checks are pending
Qwen Code CI / Test-5 (push) Blocked by required conditions
Qwen Code CI / Test-6 (push) Blocked by required conditions
Qwen Code CI / Test-7 (push) Blocked by required conditions
Qwen Code CI / Test-8 (push) Blocked by required conditions
Qwen Code CI / Post Coverage Comment (push) Blocked by required conditions
Qwen Code CI / CodeQL (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run
Qwen Code CI / Lint (push) Waiting to run
Qwen Code CI / Test (push) Blocked by required conditions
Qwen Code CI / Test-1 (push) Blocked by required conditions
Qwen Code CI / Test-2 (push) Blocked by required conditions
Qwen Code CI / Test-3 (push) Blocked by required conditions
Qwen Code CI / Test-4 (push) Blocked by required conditions

chore(channels): make plugin-example private and remove from release workflow
This commit is contained in:
tanzhenxin 2026-04-01 20:46:33 +08:00 committed by GitHub
commit a5f17ee39c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 28 deletions

View file

@ -207,13 +207,6 @@ jobs:
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
- name: 'Publish @qwen-code/channel-plugin-example'
working-directory: 'packages/channels/plugin-example'
run: |-
npm publish --access public --tag=${{ steps.version.outputs.NPM_TAG }} ${{ steps.vars.outputs.is_dry_run == 'true' && '--dry-run' || '' }}
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
- name: 'Create GitHub Release and Tag'
if: |-
${{ steps.vars.outputs.is_dry_run == 'false' }}

View file

@ -1,6 +1,7 @@
{
"name": "@qwen-code/channel-plugin-example",
"version": "0.14.0",
"private": true,
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
@ -23,7 +24,7 @@
"prepublishOnly": "npm run build"
},
"dependencies": {
"@qwen-code/channel-base": "^0.14.0",
"@qwen-code/channel-base": "file:../base",
"ws": "^8.18.0"
},
"devDependencies": {

View file

@ -104,26 +104,7 @@ if (cliPackageJson.config?.sandboxImageUri) {
writeJson(cliPackageJsonPath, cliPackageJson);
}
// 7. Rewrite file: references to semver for packages that will be published to npm.
// During development, channel packages use file: for monorepo linking.
// At release time, published packages need real semver references so they resolve from npm.
const publishedCrossRefs = [
{
packagePath: 'packages/channels/plugin-example/package.json',
dep: '@qwen-code/channel-base',
},
];
for (const { packagePath, dep } of publishedCrossRefs) {
const pkgPath = resolve(process.cwd(), packagePath);
const pkgJson = readJson(pkgPath);
if (pkgJson.dependencies?.[dep]?.startsWith('file:')) {
pkgJson.dependencies[dep] = `^${newVersion}`;
console.log(`Updated ${dep} in ${packagePath} to ^${newVersion}`);
writeJson(pkgPath, pkgJson);
}
}
// 8. Run `npm install` to update package-lock.json.
// 7. Run `npm install` to update package-lock.json.
run(
'npm install --workspace packages/cli --workspace packages/core --workspace packages/channels/base --workspace packages/channels/plugin-example --package-lock-only',
);