Solbeg Posted July 5, 2023 Share Posted July 5, 2023 Hello! I need to npm token to ci/cd, how to invalidate token from my PC and then use it in ci/cd tnx Link to comment Share on other sites More sharing options...
Rodrigo Posted July 5, 2023 Share Posted July 5, 2023 Hi, As far as I can tell every hosting provider that offers a CI/CD pipeline integration (Netlify, Vercel, AWS, Digital Ocean, etc) offers the possibility of setting environmental variables. The most common approach is to create a .npmrc file with this in it: always-auth=true @gsap:registry=https://npm.greensock.com //npm.greensock.com/:_authToken=${NPM_TOKEN} Then in your hosting service you create the environmental variable NPM_TOKEN and add the token you created in your Account's Dashboard. Take a look at these articles: https://blog.privjs.com/article/how-to-install-club-greensock-packages-on-digitalocean-aws-etc https://blog.privjs.com/article/how-to-install-club-greensock-packages-on-netlify https://blog.privjs.com/article/how-to-install-club-greensock-packages-on-vercel If you keep having issues, please be more specific about what exactly you're trying to do and any errors you could be getting in order to get a better idea of what could be the issue. Hopefully this helps. Happy Tweening! 1 Link to comment Share on other sites More sharing options...
Solbeg Posted July 6, 2023 Author Share Posted July 6, 2023 @Rodrigo The problem is that we have a licence purchased for one developer and I originally use the licence on my computer. How do I deactivate it from my computer so that I can use in CI/CD Link to comment Share on other sites More sharing options...
Cassie Posted July 6, 2023 Share Posted July 6, 2023 There's no limit on that, you can use the token on multiple machines. Hope that helps! 2 Link to comment Share on other sites More sharing options...
Brijesh-FT Posted July 14, 2023 Share Posted July 14, 2023 The same token works both locally and on ci/cd. I had the same issue on Vercel after following the steps mentioned on the Gsap dashboard and setting the Vercel environment variable. I then saw that the default install command was set as "yarn install" in my Vercel project, while I was using npm install locally. I overrode the default build command to "npm install" in Vercel, and it started deploying successfully. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now