Skip to content

Instantly share code, notes, and snippets.

@darknoon
Last active October 30, 2019 16:33
Show Gist options
  • Save darknoon/656e4e20ff65cad7383bd62c49d6effc to your computer and use it in GitHub Desktop.
Save darknoon/656e4e20ff65cad7383bd62c49d6effc to your computer and use it in GitHub Desktop.
How to make Private GH packages work with now and yarn
{
"build": {
"env": {
"MY_GH_TOKEN": "@my_gh_packages_access_token",
"NPM_RC": "registry=https://npm.pkg.github.com/<USERNAME or ORG>\n//npm.pkg.github.com/:_authToken=${MY_GH_TOKEN}\n//npm.pkg.github.com/<USERNAME or ORG>/:_authToken=${MY_GH_TOKEN}\nalways-auth=true\n"
}
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment