File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,6 +3,13 @@ name: Publish
33on :
44 workflow_dispatch :
55 inputs :
6+ package :
7+ description : " Which package set to publish"
8+ required : true
9+ type : choice
10+ options :
11+ - bailian-cli
12+ - knowledge-studio-cli
613 mode :
714 description : " Publish mode"
815 required : true
1623 type : string
1724
1825concurrency :
19- group : publish-${{ inputs.mode }}-${{ inputs.channel }}
26+ group : publish-${{ inputs.package }}-${{ inputs. mode }}-${{ inputs.channel }}
2027 cancel-in-progress : false
2128
2229jobs :
2330 publish-stable :
2431 if : inputs.mode == 'stable'
25- name : publish stable to npm + tag
32+ name : publish stable (${{ inputs.package }}) to npm + tag
2633 runs-on : ubuntu-latest
2734 environment : production # Required Reviewers gate
2835 permissions :
@@ -51,11 +58,11 @@ jobs:
5158 - run : pnpm install --frozen-lockfile
5259
5360 - name : publish-stable
54- run : node tools/release/publish-stable.mjs
61+ run : node tools/release/publish-stable.mjs ${{ inputs.package == 'knowledge-studio-cli' && '--knowledge' || '' }}
5562
5663 publish-channel :
5764 if : inputs.mode == 'channel'
58- name : publish beta to npm
65+ name : publish channel (${{ inputs.package }}) to npm
5966 runs-on : ubuntu-latest
6067 permissions :
6168 contents : read # no tag, no Release; just publish
8390 - run : pnpm install --frozen-lockfile
8491
8592 - name : publish-channel
86- run : node tools/release/publish-channel.mjs --channel "${{ inputs.channel }}"
93+ run : node tools/release/publish-channel.mjs ${{ inputs.package == 'knowledge-studio-cli' && '--knowledge' || '' }} --channel "${{ inputs.channel }}"
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export const PACKAGES = [
1010] ;
1111
1212// knowledge-studio-cli shares the same library deps as bailian-cli.
13- // Published via a separate workflow ( publish-knowledge .yml) with -- knowledge flag.
13+ // Published via publish.yml with package=knowledge-studio-cli (passes -- knowledge flag) .
1414export const KSCLI_PACKAGE = { key : "kscli" , dir : "packages/kscli" , name : "knowledge-studio-cli" } ;
1515export const ALL_PACKAGES = [ ...PACKAGES , KSCLI_PACKAGE ] ;
1616
You can’t perform that action at this time.
0 commit comments