{"action":"opened","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/4904","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/4904/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/4904/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/4904/events","html_url":"https://github.com/yarnpkg/yarn/issues/4904","id":273139880,"number":4904,"title":"Can't publish package with NPM account that has enabled 2FA","user":{"login":"edisonlee55","id":5277788,"avatar_url":"https://avatars2.githubusercontent.com/u/5277788?v=4","gravatar_id":"","url":"https://api.github.com/users/edisonlee55","html_url":"https://github.com/edisonlee55","followers_url":"https://api.github.com/users/edisonlee55/followers","following_url":"https://api.github.com/users/edisonlee55/following{/other_user}","gists_url":"https://api.github.com/users/edisonlee55/gists{/gist_id}","starred_url":"https://api.github.com/users/edisonlee55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edisonlee55/subscriptions","organizations_url":"https://api.github.com/users/edisonlee55/orgs","repos_url":"https://api.github.com/users/edisonlee55/repos","events_url":"https://api.github.com/users/edisonlee55/events{/privacy}","received_events_url":"https://api.github.com/users/edisonlee55/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-11T11:45:28Z","updated_at":"2017-11-11T11:45:28Z","closed_at":null,"author_association":"NONE","body":"I have enabled 2FA on my NPM account, I think that Yarn won't prompt for OTP code, so I can't publish my package to NPM.\r\n\r\nCommand:\r\n`\r\nyarn publish v1.3.2\r\n[1/4] Bumping version...\r\ninfo Current version: 1.0.2\r\nquestion New version: 1.0.3\r\n[2/4] Logging in...\r\n[3/4] Publishing...\r\nerror An unexpected error occurred: \"https://registry.yarnpkg.com/koguchi-chino-messenger-bot: You must provide a one-time pass.\".\r\n`\r\n\r\nLog file:\r\n`\r\nTrace: \r\n  Error: https://registry.yarnpkg.com/koguchi-chino-messenger-bot: You must provide a one-time pass.\r\n      at Request.params.callback [as _callback] (/usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:62098:18)\r\n      at Request.self.callback (/usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:123085:22)\r\n      at emitTwo (events.js:126:13)\r\n      at Request.emit (events.js:214:7)\r\n      at Request.<anonymous> (/usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:124068:10)\r\n      at emitOne (events.js:116:13)\r\n      at Request.emit (events.js:211:7)\r\n      at IncomingMessage.<anonymous> (/usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:123988:12)\r\n      at Object.onceWrapper (events.js:313:30)\r\n      at emitNone (events.js:111:20)\r\n`"}}
{"actor":{"display_login":"edisonlee55"}}