- Run the second only if the first worked
npm install && npm run build - Run both, whatever happens
git pull ; npm test - Run the second only if the first failed
npm test || echo "Tests failed"
- Run the second only if the first worked
npm install && npm run build - Run both, whatever happens
git pull ; npm test - Run the second only if the first failed
npm test || echo "Tests failed"
- Run the second only if the first worked
npm install && npm run build&& and || need PowerShell 7. In the older Windows PowerShell, use the ; line instead.
- Run both, whatever happens
git pull ; npm test - Run the second only if the first failed
npm test || echo "Tests failed"