mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2024-12-27 13:05:47 +00:00
Try exporting blank token
This commit is contained in:
parent
c09ef151f8
commit
3c9d73515f
2 changed files with 4 additions and 0 deletions
|
@ -44,4 +44,6 @@ function writeRegistryToFile(registryUrl, fileLocation) {
|
||||||
newContents += `${registryString}${os.EOL}${authString}`;
|
newContents += `${registryString}${os.EOL}${authString}`;
|
||||||
fs.writeFileSync(fileLocation, newContents);
|
fs.writeFileSync(fileLocation, newContents);
|
||||||
core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
|
core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
|
||||||
|
// Export empty node_auth_token so npm doesn't complain about not being able to find it
|
||||||
|
core.exportVariable('NODE_AUTH_TOKEN', 'XXXXX-XXXXX-XXXXX-XXXXX');
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,4 +42,6 @@ function writeRegistryToFile(registryUrl: string, fileLocation: string) {
|
||||||
newContents += `${registryString}${os.EOL}${authString}`;
|
newContents += `${registryString}${os.EOL}${authString}`;
|
||||||
fs.writeFileSync(fileLocation, newContents);
|
fs.writeFileSync(fileLocation, newContents);
|
||||||
core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
|
core.exportVariable('NPM_CONFIG_USERCONFIG', fileLocation);
|
||||||
|
// Export empty node_auth_token so npm doesn't complain about not being able to find it
|
||||||
|
core.exportVariable('NODE_AUTH_TOKEN', 'XXXXX-XXXXX-XXXXX-XXXXX');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue