Solution:
1: Create .npmrc file in root of your project.
2: write following in the .npmrc file:
--------------------------
always-auth=true
registry=https://npm.greensock.com
//npm.greensock.com/:_authToken=${NPM_TOKEN}
--------------------------
3: Go to Netlify and create an enviroment variable called : NPM_TOKEN
4: Push it up to your git repo and enjoy
Shout out to Cassie, Prasanna and Sybilrondeau. ❤️