Skip to content

Commit e52d89e

Browse files
committed
fix: do not scope _auth in npmrc
scoped legacy _auth only available since npm 8.x
1 parent dd6da07 commit e52d89e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/set-npmrc-auth.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ module.exports = async (
3232
if (NPM_USERNAME && NPM_PASSWORD && NPM_EMAIL) {
3333
await outputFile(
3434
npmrc,
35-
`${currentConfig ? `${currentConfig}\n` : ''}${nerfDart(
36-
registry
37-
)}:_auth = \${LEGACY_TOKEN}\nemail = \${NPM_EMAIL}`
35+
`${currentConfig ? `${currentConfig}\n` : ''}_auth = \${LEGACY_TOKEN}\nemail = \${NPM_EMAIL}`
3836
);
3937
logger.log(`Wrote NPM_USERNAME, NPM_PASSWORD and NPM_EMAIL to ${npmrc}`);
4038
} else if (NPM_TOKEN) {

0 commit comments

Comments
 (0)