Reputation: 397
I'm building my first Azure pipelines for a Node project and I'm wondering how in Yaml to access several package.json files below the surface level of the project?
How can I run this?
- script: |
npm install
npm run build
displayName: 'npm install and build'
On files below the surface?
Alternatively, I was considering having multiple Yaml files all at the same level as the node projects I'm trying to build, and using a master yaml to trigger all the child yamls.
If I'm just doing this completely wrong, please don't hesitate to correct me!
Upvotes: 0
Views: 313
Reputation: 72171
like you normally would in the console?
- script: |
cd some\folder\with\code
npm ci
npm run build
Alternatively, I was considering having multiple Yaml files all at the same level as the node projects I'm trying to build, and using a master yaml to trigger all the child yamls.
i dont think it works this way ;)
Upvotes: 1