Please find the configured pipeline below
Find Error below from the pipeline
npm notice
npm verb stack Error: This command requires you to be logged in to $NPM_REGISTRY
npm verb stack at Publish.exec (/usr/local/lib/node_modules/npm/lib/commands/publish.js:110:29)
npm verb stack at async module.exports (/usr/local/lib/node_modules/npm/lib/cli-entry.js:61:5)
npm verb cwd /opt/atlassian/pipelines/agent/build
npm verb Linux 5.15.0-1044-aws
npm verb node v18.18.0
npm verb npm v9.8.1
npm ERR! code ENEEDAUTH
npm ERR! need auth This command requires you to be logged in to $NPM_REGISTRY
npm ERR! need auth You need to authorize this machine using `npm adduser`
npm verb exit 1
npm verb code 1
npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-10-17T08_46_19_082Z-debug-0.log
+ status=1
+ set -e
+ [[ 1 -eq 0 ]]
+ fail 'Failed to publish package "@apollo247/pharma-cart-sevice@1.0.0-alpha16".'
+ echo -e '\e[31m✖ Failed to publish package "@apollo247/pharma-cart-sevice@1.0.0-alpha16".\e[0m'
+ exit 1
Hi Pranshu and welcome to the community!
The README of the pipe's repo mentions the following:
By default, the pipe publishes to npmjs.com. You can publish to any other registry by adding a publishConfig.registry key in your package.json. See npm documentation for more details.
Are you publishing to a registry other than https://npmjs.com/? If so, have you configured the publishConfig.registry key in your package.json?
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I'm publishing to a registry other than npmjs and some had been configured in publishConfig.registry key
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.