How do I add yarn auth token when doing a build?
Hi folks, I'm trying to deploy my service that uses private packages. I'm using yarn to build but unsure how to set the access token so that it is used to fetch the packages. I tried adding NPM_TOKEN to my environment variables but that didnt work. Any help is appreciated π
10 Replies
Project ID:
N/A
N/A
Environment variables would not work, as they are runtime, not build time. I have not used private packages, but I can do some searching and Iβll get back to you. Unless someone else gets to you first
yeah thats what i understood as well. Thanks for helping me look into it π
Solution
We don't support private packages (yet)
Would be great for https://feedback.railway.app
Railway Feedback
Give feedback to the Railway team so we can make more informed product decisions. Powered by Canny.
There we go! The man, the myth, the legend! Swooping in with the answer
I am uncomfortable with any pedestal I am put on.
π
Okay, there ya go. That guy comes through again!
hehe happy to help
Locking