GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add auth support by damccorm · Pull Request #21 · actions/setup-node Conversation
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
arcanis
reviewed
Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
This should be good to go, I verified it works for both GPR and npmjs for Yarn and npm. Note that there are a lot of file changes because I added the github package and lots of node_modules changed as a result. That's not super important though. Files you should be looking at for this review are
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Can we remove the need to specify |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@jclem, as mentioned elsewhere that would cause auth to get configured by default. With that said, I think it would be nice to somehow configure this by default for npm users - are you ok pushing this off til past 8/8 though? Can at the very least include an example of authenticating against npm and GPR in the README for this pr though. EDIT: Added some examples to the readme of publishing to npmjs and GPR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } | ||
|
|
||
| function writeRegistryToFile(registryUrl: string, fileLocation: string) { | ||
| let scope = core.getInput('scope'); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Const + type
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It gets modified so it needs to be let. Added types
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@jclem I'm going to merge. If we decide we need something different for npm users we can add a follow up PR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const curContents = fs.readFileSync(fileLocation, 'utf8'); | ||
| curContents.split(os.EOL).forEach((line) => { | ||
| // Add current contents unless they are setting the registry | ||
| if (!line.toLowerCase().startsWith('registry')) { |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem right. Only the line(s) that is being redefined should be removed.
registry defines the default registry for unscoped dependencies, whereas if scope is provided this function is (re)defining a scoped registry.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
FYI @hross
Sorry, something went wrong.
There was an error while loading. Please reload this page.
sandbox-api path change
Bumps [acorn](https://github.com/acornjs/acorn) from 7.1.0 to 7.1.1. - [Release notes](https://github.com/acornjs/acorn/releases) - [Commits](acornjs/acorn@7.1.0...7.1.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
|
yes> |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.