npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Unable to publish through my Continuous integration tool (github actions) - OTP

Hi.

I am trying to utilize semantic-release to publish my package everytime I push on master.

I have set my two-factor authentication to auth-only:

┌─────────────────┬──────────────────────────────────┐
│ name            │ mkotsollaris                     │
├─────────────────┼──────────────────────────────────┤
│ email           │ (verified) │
├─────────────────┼──────────────────────────────────┤
│ two-factor auth │ auth-only                        │
├─────────────────┼──────────────────────────────────┤
│ fullname        │ Menelaos Kotsollaris             │
├─────────────────┼──────────────────────────────────┤
│ homepage        │                                  │
├─────────────────┼──────────────────────────────────┤
│ freenode        │                                  │
├─────────────────┼──────────────────────────────────┤
│ twitter         │ mkotsollaris                     │
├─────────────────┼──────────────────────────────────┤
│ github          │ mkotsollaris                     │
├─────────────────┼──────────────────────────────────┤
│ created         │ 2018-01-14T22:50:59.337Z         │
├─────────────────┼──────────────────────────────────┤
│ updated         │ 2019-10-21T20:30:36.842Z         │
└─────────────────┴──────────────────────────────────┘

However, when I run npm publish, I am still being asked about my OTP; thus the semantic-release publish command fails. What can I do to solve this issue?

Here is the github action “Run npm run semantic-release”:

Thank you


I was able to resolve the issue by disabling 2FA in my admin package settings (see attached image) by clicking “Update Package Settings”.

Screen Shot 2019-10-27 at 12.05.05 PM