Skip to content

Commit 58fa752

Browse files
committed
Do not print npmPublish args at configuration phase
1 parent cc08426 commit 58fa752

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

gradle/publish-npm-js.gradle

+9-7
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ task preparePublishNpm(type: Copy, dependsOn: [compileKotlin2Js]) {
2929
task publishNpm(type: NpmTask, dependsOn: [preparePublishNpm]) {
3030
workingDir = npmDeployDir
3131
def deployArgs = ['publish',
32-
"--//registry.npmjs.org/:_authToken=$authToken",
33-
"--tag=$npmDeployTag"]
34-
if (dryRun == "true") {
35-
println("$npmDeployDir \$ npm arguments: $deployArgs")
36-
args = ['pack']
37-
} else {
38-
args = deployArgs
32+
"--//registry.npmjs.org/:_authToken=$authToken",
33+
"--tag=$npmDeployTag"]
34+
doFirst {
35+
if (dryRun == "true") {
36+
println("$npmDeployDir \$ npm arguments: $deployArgs")
37+
args = ['pack']
38+
} else {
39+
args = deployArgs
40+
}
3941
}
4042
}

0 commit comments

Comments
 (0)