Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GH token to auth if using custom repo #44

Merged
merged 4 commits into from
Sep 16, 2022
Merged

Use GH token to auth if using custom repo #44

merged 4 commits into from
Sep 16, 2022

Conversation

hardillb
Copy link
Contributor

This is part of the work needed to move to GH npm repo for nightly builds

@hardillb hardillb added this to the 1.0 milestone Sep 13, 2022
@hardillb hardillb self-assigned this Sep 13, 2022
@hardillb
Copy link
Contributor Author

ARG TAG
RUN if [[ ! -z "$REGISTRY_TOKEN" ]]; then echo "//npm.pkg.github.com/:_authtoken=$REGISTRY_TOKEN" >> ~/.npmrc ; fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the npm.pkg.github.com bit be picked up from $REGISTRY or am I misunderstanding what these bits are doing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is that npm wants a full URL for the registry (e.g. https://npm.pkg.github.com/) and only a URL fragment (no schema e.g. //npm.pkg.github.com/ ) for the authentication token key.

I suppose I could just pass the fragment in from the GH Action and then pre-pend the schema in the next line to make it all parametrised.

Also allow passing in a npm build tag to the nr-launcher
@knolleary knolleary merged commit 4bd32ba into main Sep 16, 2022
@knolleary knolleary deleted the gh-npm-repo branch September 16, 2022 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants