-
Notifications
You must be signed in to change notification settings - Fork 20
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
Support NPM config environment variables #188
Comments
hey @wsams, not sure honestly, this is a Docker action so that might complicate things but I believe anything you set under so I don't think this action is necessarily the blocker here. i think something else might be at play but I don't have enough knowledge on enterprise runners and what the home directory is in and outside of docker actions.. You could take a look at your step outputs and see what is being passed into the semantic step, i.e. https://github.com/codfish/actions-playground/actions/runs/4589554453/jobs/8104523903#step:11:94 ... that might help illuminate what the issue is. Sorry I couldn't provide a solution, let me know if you figure it out! |
Hi @codfish , I still haven't been able to resolve that issue, but today I tried to use the
I suppose it could be the enterprise runners, but we use environment variables all over the place with many different actions. If you think of anything else I'd love to hear it. I can't figure out what's going on. |
I have a workflow running on a GitHub Enterprise runner and need to override certain NPM directories/files like
~/.npm
and~/.npmrc
.The step below shows the environment variables I use in other actions. But for some reason the default
~/.npm
location is being used instead of/home/github/npm_cache
. If I exec into the container running this job, and set those environment variables manually,/home/github/npm_cache
will be used correctly.Does anyone know if these environment variables,
NPM_CONFIG_PREFIX
andNPM_CONFIG_GLOBALCONFIG
, can be used with this action? Or another way to override them?The text was updated successfully, but these errors were encountered: