Skip to content

Commit d6d3c78

Browse files
committed
"publish: stash of uncommitted changes by release script"
1 parent 402deda commit d6d3c78

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

release/utils/flags-config.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,14 @@ export const publish_flags_config: FlagConfig = {
182182
type: String,
183183
examples: [],
184184
default_value: async (options: Map<string, string | number | boolean | null>) => {
185-
console.log(options);
186-
return (await getPublishedChannelInfo()).latest;
185+
const channel = options.get('channel') as CHANNEL;
186+
if (channel === 'lts' || channel === 'release' || channel === 'beta' || channel === 'canary') {
187+
if (channel === 'release') {
188+
return (await getPublishedChannelInfo()).latest;
189+
}
190+
return (await getPublishedChannelInfo())[channel];
191+
}
192+
return '';
187193
},
188194
validate: async (value: unknown) => {
189195
if (typeof value !== 'string') {

0 commit comments

Comments
 (0)