Skip to content

Commit 88e5862

Browse files
authoredJan 17, 2021
fix: improve error message text for npm tokens (#323)
1 parent 36c3373 commit 88e5862

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎lib/definitions/errors.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ Please make sure to create an [npm token](https://docs.npmjs.com/getting-started
3636
'README.md#npm-registry-authentication'
3737
)}) 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}\`.
3838
39-
If you are using Two-Factor Authentication, make configure the \`auth-only\` [level](https://docs.npmjs.com/getting-started/using-two-factor-authentication#levels-of-authentication) is supported. **semantic-release** cannot publish with the default \`auth-and-writes\` level.
39+
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 "
40+
Authorization and writes" level.
4041
4142
Please make sure to set the \`NPM_TOKEN\` environment variable in your CI with the exact value of the npm token.`,
4243
}),

0 commit comments

Comments
 (0)
Please sign in to comment.