I'm trying to pass a variable into my npm script so I can run some pre-deployment methods. Unfortunately the below doesn't work and just throws an error, like the variable doesn't exist (however, it does):
- step:
name: Run Pre-deploy scripts
script:
- MONGODB_URI=$MONGODB_URI npm run preDeploy
Any help would be greatly appreciated!