Skip to content

Commit 8fbc9d0

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

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

release/utils/flags-config.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,12 @@ export const publish_flags_config: FlagConfig = {
184184
default_value: async (options: Map<string, string | number | boolean | null>) => {
185185
const channel = options.get('channel') as CHANNEL;
186186
if (channel === 'lts' || channel === 'release' || channel === 'beta' || channel === 'canary') {
187-
if (channel === 'release') {
188-
return (await getPublishedChannelInfo()).latest;
187+
const version = (await getPublishedChannelInfo())[channel === 'release' ? 'latest' : channel];
188+
const currentVersion = (await getGitState(options)).rootVersion;
189+
if (version !== currentVersion) {
190+
return version;
189191
}
190-
return (await getPublishedChannelInfo())[channel];
192+
return '';
191193
}
192194
return '';
193195
},

0 commit comments

Comments
 (0)