Skip to content

Commit

Permalink
fix: improve error message text for npm tokens (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz authored Jan 17, 2021
1 parent 36c3373 commit 88e5862
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/definitions/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ Please make sure to create an [npm token](https://docs.npmjs.com/getting-started
'README.md#npm-registry-authentication'
)}) 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}\`.
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.
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 "
Authorization and writes" level.
Please make sure to set the \`NPM_TOKEN\` environment variable in your CI with the exact value of the npm token.`,
}),
Expand Down

0 comments on commit 88e5862

Please sign in to comment.