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