mirror of
https://gitea.com/actions/setup-node.git
synced 2024-11-25 19:49:33 +01: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
31 lines
949 B
Text
31 lines
949 B
Text
// 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"
|
|
`;
|