summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-07-28 20:55:29 -0700
committerElizabeth Hunt <me@liz.coffee>2025-07-28 20:55:29 -0700
commit70b4c7fcca288404094e7e7ea33dc57ef89e8b33 (patch)
treec50f436dc51031957b7f8406c362716e5cbd198a
parent06159c5720384cf9dad98161e3d5ed52dcb0145b (diff)
downloadci-70b4c7fcca288404094e7e7ea33dc57ef89e8b33.tar.gz
ci-70b4c7fcca288404094e7e7ea33dc57ef89e8b33.zip
Set npmrc
-rw-r--r--worker/scripts/npm_publish.ts8
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 })))