@@ -9,9 +9,9 @@ The registries can be accessed and configured from a `build.gradle.kts` file via
99
1010``` kotlin title="build.gradle.kts"
1111npmPublish {
12- registries {
13- .. .
14- }
12+ registries {
13+ .. .
14+ }
1515}
1616```
1717
@@ -23,14 +23,14 @@ detect and configure existing registries on subsequent invocations.
2323
2424``` kotlin title="build.gradle.kts"
2525npmPublish {
26- registries {
27- npmjs {
28- authToken.set(" obfuscated" )
29- }
30- github {
31- authToken.set(" obfuscated" )
26+ registries {
27+ npmjs {
28+ authToken.set(" obfuscated" )
29+ }
30+ github {
31+ authToken.set(" obfuscated" )
32+ }
3233 }
33- }
3434}
3535```
3636
@@ -59,9 +59,10 @@ npmPublish {
5959 | [`uri`](#uri) | | `npm.publish.registry.<name>.uri` | `NPM_PUBLISH_REGISTRY_<NAME>_URI` |
6060 | [`otp`](#otp) | | `npm.publish.registry.<name>.otp` | `NPM_PUBLISH_REGISTRY_<NAME>_OTP` |
6161 | [`authToken`](#authToken) | | `npm.publish.registry.<name>.authToken` | `NPM_PUBLISH_REGISTRY_<NAME>_AUTHTOKEN` |
62- | [`auth`](#auth) | | `npm.publish.registry.<name>.auth` | `NPM_PUBLISH_REGISTRY_<NAME>_AUTH` |
63- | [`username`](#username) | | `npm.publish.registry.<name>.username` | `NPM_PUBLISH_REGISTRY_<NAME>_USERNAME` |
64- | [`password`](#password) | | `npm.publish.registry.<name>.password` | `NPM_PUBLISH_REGISTRY_<NAME>_PASSWORD` |
62+ | [`auth`](#auth) | | `npm.publish.registry.<name>.auth` | `NPM_PUBLISH_REGISTRY_<NAME>_AUTH` |
63+ | [`username`](#username) | | `npm.publish.registry.<name>.username` | `NPM_PUBLISH_REGISTRY_<NAME>_USERNAME` |
64+ | [`password`](#password) | | `npm.publish.registry.<name>.password` | `NPM_PUBLISH_REGISTRY_<NAME>_PASSWORD` |
65+ | [`npmrc`](#npmrc) | | `npm.publish.registry.<name>.npmrc` | `NPM_PUBLISH_REGISTRY_<NAME>_NPMRC` |
6566
6667=== "Usage"
6768
@@ -80,6 +81,7 @@ npmPublish {
8081 // or
8182 username.set("obfuscated")
8283 password.set("obfuscated")
84+ npmrc.set(projectDir.resolve(".npmrc"))
8385 }
8486 }
8587 }
@@ -113,30 +115,30 @@ Auth token to use when authenticating with the registry.
113115[ More info] ( https://docs.npmjs.com/about-access-tokens )
114116
115117!!! note
116- Only one of ` authToken ` , ` auth ` or ` username ` + ` password ` should be provided.
118+ Only one of ` authToken ` , ` auth ` or ` username ` + ` password ` should be provided.
117119
118120### ` auth `
119121
120122Base64 authentication string when authenticating with the registry.
121123
122124!!! note
123- Only one of ` authToken ` , ` auth ` or ` username ` + ` password ` should be provided.
125+ Only one of ` authToken ` , ` auth ` or ` username ` + ` password ` should be provided.
124126
125127### ` username `
126128
127129Username to use when authenticating with the registry.
128130Should always be specified together with a password.
129131
130132!!! note
131- Only one of ` authToken ` , ` auth ` or ` username ` + ` password ` should be provided.
133+ Only one of ` authToken ` , ` auth ` or ` username ` + ` password ` should be provided.
132134
133135### ` password `
134136
135137Password to use when authenticating with the registry.
136138Should always be specified together with a username.
137139
138140!!! note
139- Only one of ` authToken ` , ` auth ` or ` username ` + ` password ` should be provided.
141+ Only one of ` authToken ` , ` auth ` or ` username ` + ` password ` should be provided.
140142
141143### ` npmrc `
142144
0 commit comments