mirror of
https://codeberg.org/actions/setup-node.git
synced 2023-07-31 13:16:24 +00:00
7a3ce83626
* Add setting for always-auth - https://docs.npmjs.com/misc/config#always-auth - Allow private repos for stuff like artifactory to work * Fix tests for always-auth
32 lines
949 B
Plaintext
32 lines
949 B
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`installer tests Appends trailing slash to registry 1`] = `
|
|
"//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}
|
|
registry=https://registry.npmjs.org/
|
|
always-auth=false"
|
|
`;
|
|
|
|
exports[`installer tests Automatically configures GPR scope 1`] = `
|
|
"npm.pkg.github.com/:_authToken=\${NODE_AUTH_TOKEN}
|
|
@ownername:registry=npm.pkg.github.com/
|
|
always-auth=false"
|
|
`;
|
|
|
|
exports[`installer tests Configures scoped npm registries 1`] = `
|
|
"//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}
|
|
@myscope:registry=https://registry.npmjs.org/
|
|
always-auth=false"
|
|
`;
|
|
|
|
exports[`installer tests Sets up npmrc for always-auth true 1`] = `
|
|
"//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}
|
|
registry=https://registry.npmjs.org/
|
|
always-auth=true"
|
|
`;
|
|
|
|
exports[`installer tests Sets up npmrc for npmjs 1`] = `
|
|
"//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}
|
|
registry=https://registry.npmjs.org/
|
|
always-auth=false"
|
|
`;
|