Use .npmrc as source for authentication to private NPM registry on Google Cloud #1333
Replies: 1 comment
-
The answer lies here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Howdy!
We create short-lived NPM tokens for authentication to a private NPM registry, which is then applied to our .npmrc file:
//us-central1-npm.pkg.dev/omny-artifacts/omnysec/:_authToken=
When pass in the
--secret id=npmrc,src=$GITHUB_WORKSPACE/.npmrc
option to thedocker build
command. This secret is also mounted in the Dockerfile.How can I recreate this behaviour?
I was hoping to do something like this:
But this obviously doesn't work as I'm not too familiar with this action
Beta Was this translation helpful? Give feedback.
All reactions