mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-19 21:04:45 +00:00
adding test for NODE_AUTH_TOKEN overwritten
This commit is contained in:
parent
c6fd00ceb9
commit
8dde5bc004
2 changed files with 13 additions and 2 deletions
|
@ -54,5 +54,5 @@ function writeRegistryToFile(
|
|||
fs.writeFileSync(fileLocation, newContents);
|
||||
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');
|
||||
core.exportVariable('NODE_AUTH_TOKEN', process.env.NODE_AUTH_TOKEN || 'XXXXX-XXXXX-XXXXX-XXXXX');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue