Skip to content

Commit

Permalink
add packageSourceCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
e-korolevskii committed Sep 30, 2022
1 parent bdd38d1 commit 4676217
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ function writeFeedToFile(feedUrl, existingFileLocation, tempFileLocation) {
]
});
});
xmlSource[1].configuration.push({
packageSourceCredentials
});
// If NuGet fixes itself such that on Linux it can look for environment variables in the config file (it doesn't seem to work today),
// use this for the value above
// process.platform == 'win32'
Expand Down
4 changes: 4 additions & 0 deletions src/authutil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ function writeFeedToFile(
});
});

xmlSource[1].configuration.push({
packageSourceCredentials
});

// If NuGet fixes itself such that on Linux it can look for environment variables in the config file (it doesn't seem to work today),
// use this for the value above
// process.platform == 'win32'
Expand Down

0 comments on commit 4676217

Please sign in to comment.