Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement npm registry authentication, allowing access to private registries via
.npmrc
This PR also includes the first two commits from #151 since the same changes are needed for authentication support.
Unfortunately the NixOS VM test for authentication created in this PR can't run in GitHub Actions, but it works locally.
TODO:
.npmrc
fields_authToken
and_auth
_authToken
.npmrc
fields_password
andusername
(this might not be possible)package-lock.json
and.npmrc
generated by npm (the current one is hand-written)npm
with the example from the current test.npmrc
, see https://stackoverflow.com/questions/53099434/using-auth-tokens-in-npmrc