From 70b4c7fcca288404094e7e7ea33dc57ef89e8b33 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Mon, 28 Jul 2025 20:55:29 -0700 Subject: Set npmrc --- worker/scripts/npm_publish.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 }))) -- cgit v1.2.3-70-g09d2