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
+5-8Lines changed: 5 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -45,17 +45,14 @@ Please make sure to create an [npm token](https://docs.npmjs.com/getting-started
45
45
};
46
46
}
47
47
48
-
exportfunctionEINVALIDNPMTOKEN({ registry }){
48
+
exportfunctionEINVALIDNPMAUTH({ registry }){
49
49
return{
50
-
message: "Invalid npm token.",
51
-
details: `The [npm token](${linkify(
50
+
message: "Invalid npm authentication.",
51
+
details: `The [authentication required to publish](${linkify(
52
52
"README.md#npm-registry-authentication"
53
-
)}) configured in the \`NPM_TOKEN\` environment variable must be a valid [token](https://docs.npmjs.com/getting-started/working_with_tokens) allowing to publish to the registry \`${registry}\`.
53
+
)}) is not configured as needed.
54
54
55
-
If you are using Two Factor Authentication for your account, set its level to ["Authorization only"](https://docs.npmjs.com/getting-started/using-two-factor-authentication#levels-of-authentication) in your account settings. **semantic-release** cannot publish with the default "
56
-
Authorization and writes" level.
57
-
58
-
Please make sure to set the \`NPM_TOKEN\` environment variable in your CI with the exact value of the npm token.`,
55
+
Please verify your authentication configuration.`,
0 commit comments