File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -225,21 +225,17 @@ export async function build(rawOptions?: CliOptions): Promise<void> {
225
225
}
226
226
else if ( options . githubToken != null ) {
227
227
const tag = process . env . TRAVIS_TAG || process . env . APPVEYOR_REPO_TAG_NAME || process . env . CIRCLE_TAG
228
- if ( tag != null && tag . length !== 0 ) {
228
+ if ( ! isEmptyOrSpaces ( tag ) ) {
229
229
log ( `Tag ${ tag } is defined, so artifacts will be published` )
230
230
options . publish = "onTag"
231
231
isPublishOptionGuessed = true
232
232
}
233
- else { if ( isCi ( ) ) {
234
- log ( "CI detected, so artifacts will be published if draft release exists" )
235
- options . publish = "onTagOrDraft"
236
- isPublishOptionGuessed = true
237
- }
233
+ else if ( isCi ( ) ) {
234
+ log ( "CI detected, so artifacts will be published if draft release exists" )
235
+ options . publish = "onTagOrDraft"
236
+ isPublishOptionGuessed = true
238
237
}
239
238
}
240
- else {
241
- log ( "CI detected, so artifacts will be published if draft release exists" )
242
- }
243
239
}
244
240
245
241
if ( options . publish !== "never" && options . githubToken == null && isCi ( ) ) {
You can’t perform that action at this time.
0 commit comments