Skip to content

Commit

Permalink
minor improvements to logging in release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Nov 21, 2023
1 parent 8c0ee9b commit fa95eb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/ReleaseTasks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let createPrereleaseTag = BuildTask.create "CreatePrereleaseTag" [setPrereleaseT
let publishNuget = BuildTask.create "PublishNuget" [clean; build; runTests; packDotNet] {
let targets = (!! (sprintf "%s/*.*pkg" pkgDir ))
for target in targets do printfn "%A" target
let msg = sprintf "release package with version %s?" stableVersionTag
let msg = sprintf "[NUGET] release package with version %s?" stableVersionTag
if promptYesNo msg then
let source = "https://api.nuget.org/v3/index.json"
let apikey = Environment.environVar "NUGET_KEY"
Expand All @@ -46,7 +46,7 @@ let publishNuget = BuildTask.create "PublishNuget" [clean; build; runTests; pack
let publishNugetPrerelease = BuildTask.create "PublishNugetPrerelease" [clean; build; runTests; packDotNetPrerelease] {
let targets = (!! (sprintf "%s/*.*pkg" pkgDir ))
for target in targets do printfn "%A" target
let msg = sprintf "release package with version %s?" prereleaseTag
let msg = sprintf "[NUGET] release package with version %s?" prereleaseTag
if promptYesNo msg then
let source = "https://api.nuget.org/v3/index.json"
let apikey = Environment.environVar "NUGET_KEY"
Expand All @@ -61,7 +61,7 @@ let publishNPM = BuildTask.create "PublishNPM" [clean; build; runTests; packJS]
(!! (sprintf "%s/*.tgz" npmPkgDir ))
|> Seq.head
printfn "%A" target
let msg = sprintf "release package with version %s?" stableVersionTag
let msg = sprintf "[NPM] release package with version %s?" stableVersionTag
if promptYesNo msg then
let apikey = Environment.environVarOrNone "NPM_KEY"
let otp = if apikey.IsSome then $" --otp + {apikey.Value}" else ""
Expand All @@ -77,7 +77,7 @@ let publishNPMPrerelease = BuildTask.create "PublishNPMPrerelease" [clean; build
(!! (sprintf "%s/*.tgz" npmPkgDir ))
|> Seq.head
printfn "%A" target
let msg = sprintf "release package with version %s?" prereleaseTag
let msg = sprintf "[NPM] release package with version %s?" prereleaseTag
if promptYesNo msg then
let apikey = Environment.environVarOrNone "NPM_KEY"
let otp = if apikey.IsSome then $" --otp {apikey.Value}" else ""
Expand Down

0 comments on commit fa95eb9

Please sign in to comment.