R
Railwayβ€’13mo ago
preetpatel

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 πŸ™‚
Solution:
We don't support private packages (yet)
Jump to solution
10 Replies
Percy
Percyβ€’13mo ago
Project ID: N/A
preetpatel
preetpatelβ€’13mo ago
N/A
MantisInABox
MantisInABoxβ€’13mo ago
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
preetpatel
preetpatelβ€’13mo ago
yeah thats what i understood as well. Thanks for helping me look into it πŸ™‚
Solution
angelo
angeloβ€’13mo ago
We don't support private packages (yet)
angelo
angeloβ€’13mo ago
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.
MantisInABox
MantisInABoxβ€’13mo ago
There we go! The man, the myth, the legend! Swooping in with the answer
angelo
angeloβ€’13mo ago
I am uncomfortable with any pedestal I am put on. πŸ™‡
MantisInABox
MantisInABoxβ€’13mo ago
Okay, there ya go. That guy comes through again!
angelo
angeloβ€’13mo ago
hehe happy to help Locking