Skip to content

Commit f20c85e

Browse files
author
Iheanyi Ekechukwu
authored
Fix string interpolation for auth token.
1 parent da3e599 commit f20c85e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/authutil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function writeRegistryToFile(registryUrl: string, fileLocation: string) {
3636
}
3737
// Remove http: or https: from front of registry.
3838
const authString =
39-
registryUrl.replace(/(^\w+:|^)/, '') + ':_authToken=${NODE_AUTH_TOKEN}';
39+
registryUrl.replace(/(^\w+:|^)/, '') + `:_authToken=${NODE_AUTH_TOKEN}`;
4040
const registryString = scope
4141
? `${scope}:registry=${registryUrl}`
4242
: `registry=${registryUrl}`;

0 commit comments

Comments
 (0)