We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6d3c78 commit 8fbc9d0Copy full SHA for 8fbc9d0
release/utils/flags-config.ts
@@ -184,10 +184,12 @@ export const publish_flags_config: FlagConfig = {
184
default_value: async (options: Map<string, string | number | boolean | null>) => {
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;
+ const version = (await getPublishedChannelInfo())[channel === 'release' ? 'latest' : channel];
+ const currentVersion = (await getGitState(options)).rootVersion;
189
+ if (version !== currentVersion) {
190
+ return version;
191
}
- return (await getPublishedChannelInfo())[channel];
192
+ return '';
193
194
return '';
195
},
0 commit comments