diff options
-rw-r--r-- | worker/scripts/npm_publish.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/worker/scripts/npm_publish.ts b/worker/scripts/npm_publish.ts index 893afdc..d2e14da 100644 --- a/worker/scripts/npm_publish.ts +++ b/worker/scripts/npm_publish.ts @@ -52,7 +52,13 @@ await LogMetricTraceable.ofLogTraceable(_logJob) .then((e) => e .mapRight(({ notes }) => notes) - .mapRight((token) => [job.arguments.registry, `_authToken=${token.trim()}`].join(':')) + .mapRight((token) => + [ + `//${job.arguments.registry}/:_authToken=${token.trim()}`, + `registry=https://${job.arguments.registry}/`, + `always-auth=true`, + ].join('\n'), + ) .flatMapAsync((npmRc) => saveToTempFile(npmRc)), ) .then((e) => e.mapRight((npmRc) => ({ npmRc, job }))) |