We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 402deda commit d6d3c78Copy full SHA for d6d3c78
release/utils/flags-config.ts
@@ -182,8 +182,14 @@ export const publish_flags_config: FlagConfig = {
182
type: String,
183
examples: [],
184
default_value: async (options: Map<string, string | number | boolean | null>) => {
185
- console.log(options);
186
- return (await getPublishedChannelInfo()).latest;
+ const channel = options.get('channel') as CHANNEL;
+ 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 '';
193
},
194
validate: async (value: unknown) => {
195
if (typeof value !== 'string') {
0 commit comments