npm install with arguments
I'm trying improve CD in my project. In deploy stage I have a script with npm installation. NPM tool has possibility to add arguments to use npm cache or to use production installation. My script looks like that:
deploy:
stage: deploy
only:
- develop
script:
- npm --no-optional --skip-installed --production --cache-min 999999 install
Runner do this script but it works like normal npm install. It means that npm install devDependencies, never use npm-cache and it's installing optional dependencies...
I work on local runner. It was registered to use shell (powershell).