-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
Here you have the error, on the integration pipeline:

Expected Behavior
To publish an artifact on npm registry on a automate way using the github actions framework
Steps To Reproduce
- Setup an npm artifact and account
- With a composite action workflow
- Run the workflow with github actions, setting npm user, email, password and token as secrets
- See error...
Environment
https://github.com/P4dr4/apolo/actions/runs/12957324570/job/36145430818
npm error Exit handler never called!
npm error This is an error with npm itself. Please report this error at:
npm error https://github.com/npm/cli/issues
npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2025-01-24T20_51_32_051Z-debug-0.log
info attempt registry request try #1 at 8:51:32 PM
http request PUT https://registry.npmjs.org/-/user/org.couchdb.user:***
http 401 https://registry.npmjs.org/-/user/org.couchdb.user:***
WARN notice Please check your email for a one-time password (OTP)
WARN adduser Incorrect username or password
WARN adduser You can reset your account by visiting:
WARN adduser
WARN adduser https://npmjs.org/forgot
WARN adduser
/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm-cli-login/lib/index.js:11
throw new Error(err);
^
Error: Error: failed to authenticate: A One Time Password (OTP) by email is required. : -/user/org.couchdb.user:***
at /opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm-cli-login/lib/index.js:11:19
at /opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm-cli-login/lib/login.js:59:24
at /opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm-cli-login/node_modules/npm-registry-client/lib/adduser.js:125:14
at /opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm-cli-login/node_modules/npm-registry-client/lib/adduser.js:73:16
at f (/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm-cli-login/node_modules/once/once.js:25:25)
at /opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm-cli-login/node_modules/npm-registry-client/lib/request.js:91:10
at /opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm-cli-login/node_modules/npm-registry-client/lib/request.js:105:12
at f (/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm-cli-login/node_modules/once/once.js:25:25)
at RegClient. (/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm-cli-login/node_modules/npm-registry-client/lib/request.js:324:12)
at Request._callback (/opt/hostedtoolcache/node/20.18.1/x64/lib/node_modules/npm-cli-login/node_modules/npm-registry-client/lib/request.js:216:14)
Node.js v20.18.1
//registry.npmjs.org/:_authToken = (protected)
registry = "https://registry.npmjs.org/"
; node version = v22.11.0
; npm version = 11.0.0
; Run npm config ls -l to show all defaults.