|
| 1 | +diff --git a/lib/publish.js b/lib/publish.js |
| 2 | +index ac3e6feea8e388d88e77d58538a265f7ab4eac05..a279e846539383c8739f87fc5f4fac172d4ddc92 100644 |
| 3 | +--- a/lib/publish.js |
| 4 | ++++ b/lib/publish.js |
| 5 | +@@ -22,7 +22,7 @@ export default async function (npmrc, { npmPublish, pkgRoot }, pkg, context) { |
| 6 | + logger.log(`Publishing version ${version} to npm registry on dist-tag ${distTag}`); |
| 7 | + const result = execa( |
| 8 | + "npm", |
| 9 | +- ["publish", basePath, "--userconfig", npmrc, "--tag", distTag, "--registry", registry], |
| 10 | ++ ["publish", basePath, "--tag", distTag, "--registry", registry], |
| 11 | + { cwd, env, preferLocal: true } |
| 12 | + ); |
| 13 | + result.stdout.pipe(stdout, { end: false }); |
| 14 | +diff --git a/lib/set-npmrc-auth.js b/lib/set-npmrc-auth.js |
| 15 | +index 6e92d0801b42e6b57fa508b87b374d1706639fc9..6fce48206fd3008f797ac529fcb5e5c864496907 100644 |
| 16 | +--- a/lib/set-npmrc-auth.js |
| 17 | ++++ b/lib/set-npmrc-auth.js |
| 18 | +@@ -6,7 +6,7 @@ import nerfDart from "nerf-dart"; |
| 19 | + import AggregateError from "aggregate-error"; |
| 20 | + import getError from "./get-error.js"; |
| 21 | + |
| 22 | +-export default async function (npmrc, registry, { cwd, env: { NPM_TOKEN, NPM_CONFIG_USERCONFIG }, logger }) { |
| 23 | ++export default async function (npmrc, registry, { cwd, env: { NPM_TOKEN, npm_config_userconfig }, logger }) { |
| 24 | + logger.log("Verify authentication for registry %s", registry); |
| 25 | + const { configs, ...rcConfig } = rc( |
| 26 | + "npm", |
0 commit comments