Hi,
When I use the deployment tag, in my yml file.
The npm install not works.
- step:
name: Development Build and Deployment
deployment: staging
caches:
- node
#trigger: manual
script:
- npm install
- npm install -g @angular/cli@7.3.8
- ng build
- scp -r dist/ $SITES_USER@$SITES_IP:$PATH
The code above, not works, when the pipeline run, throws the error: bash: npm: command not found.
When I take off the deployment, like that:
- step:
name: Development Build and Deployment
caches:
- node
#trigger: manual
script:
- npm install
- npm install -g @angular/cli@7.3.8
- ng build
- scp -r dist/ $SITES_USER@$SITES_IP:$PATH
The code above, works.
How to make the pipeline with deployment works?