File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,17 @@ export async function publish(args) {
6969 const env = {
7070 ...process . env ,
7171 NPM_TOKEN : args . accessToken || undefined ,
72- // NPM_CONFIG_REGISTRY: (args.registry || 'https://registry.npmjs.org/'),
72+ NPM_CONFIG_REGISTRY : ( args . registry || 'https://registry.npmjs.org/' ) ,
7373 }
7474
7575 // set config
7676 const registryUrlWithoutScheme = ( args . registry || 'https://registry.npmjs.org/' ) . replace ( / h t t p s ? : \/ \/ / , '' ) ;
7777 const configCmd = `npm config set //${ registryUrlWithoutScheme } :_authToken ${ env . NPM_TOKEN } ` ;
78- execSync ( configCmd ) ;
78+ logger . info ( `Setting npm config to registry //${ registryUrlWithoutScheme } ` ) ;
79+ execSync ( configCmd , {
80+ cwd : packageDirectory ,
81+ env
82+ } ) ;
7983
8084
8185 let packageVersionPublished = null ;
You can’t perform that action at this time.
0 commit comments