You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/definitions/errors.js
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -37,20 +37,22 @@ Your configuration for the \`pkgRoot\` option is \`${pkgRoot}\`.`,
37
37
exportfunctionENONPMTOKEN({ registry }){
38
38
return{
39
39
message: "No npm token specified.",
40
-
details: `When not publishing through [trusted publishing](https://docs.npmjs.com/trusted-publishers) an [npm token](${linkify(
40
+
details: `When not publishing through [trusted publishing](https://docs.npmjs.com/trusted-publishers), an [npm token](${linkify(
41
41
"README.md#npm-registry-authentication"
42
42
)}) must be created and set in the \`NPM_TOKEN\` environment variable on your CI environment.
43
43
44
-
Please make sure to create an [npm token](https://docs.npmjs.com/getting-started/working_with_tokens#how-to-create-new-tokens) and to set it in the \`NPM_TOKEN\` environment variable on your CI environment. The token must allow to publish to the registry \`${registry}\`.`,
44
+
Please make sure to create an [npm token](https://docs.npmjs.com/getting-started/working_with_tokens#how-to-create-new-tokens) and set it in the \`NPM_TOKEN\` environment variable on your CI environment. The token must allow publishing to the registry \`${registry}\`.`,
45
45
};
46
46
}
47
47
48
-
exportfunctionEINVALIDNPMAUTH(){
48
+
exportfunctionEINVALIDNPMAUTH({ registry }){
49
49
return{
50
50
message: "Invalid npm authentication.",
51
51
details: `The [authentication required to publish](${linkify(
52
52
"README.md#npm-registry-authentication"
53
-
)}) is not configured as needed.`,
53
+
)}) configured in the \`NPM_TOKEN\` environment variable must be a valid [token](https://docs.npmjs.com/getting-started/working_with_tokens) allowed to publish to the registry \`${registry}\`.
54
+
55
+
Please make sure to set the \`NPM_TOKEN\` environment variable in your CI with the exact value of the npm token.`,
0 commit comments