Trying to publish a private package under organisation scope, trying to get help on publish a private package in org scope using pipeline.
.npmrc :
scope:registry=http://registry.npmjs.org/
scripts:
npm_url : https://registry.npmjs.org/@scopename/ [registry.npmjs.org] but it is not actually picking it.
script:
- pipe: atlassian/npm-publish:0.2.0
variables:
NPM_REGISTRY_URL: $NPM_URL
NPM_TOKEN: $NPM_TOKEN
DEBUG: 'true'
ERROR:
Previously was having 403 error.
INFO: Registry URL: https://registry.npmjs.org
INFO: Setting npm auth configuration...
DEBUG: ~/.npmrc file: //registry.npmjs.org/:_authToken=******
registry=https://registry.npmjs.org
INFO: Publishing package...
npm publish .
.
.
.
.
npm notice
npm ERR! publish Failed PUT 403
npm ERR! code E403
npm ERR! Forbidden : @scope/package
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-04-30T22_23_37_528Z-debug.log
✖ Failed to publish package