nx-azure-build
nx-azure-build copied to clipboard
Nx cloud integration
Would be nice to see how does this work with nx cloud. I have set the nx cloud env variable but it doesn’t work
This video shows you the basic setup for CI-CD: https://www.youtube.com/watch?v=w1-GiB74ddc
There are a couple steps unique to Azure DevOps.
In your pipeline add a variable.
Then, for each script in the azure-pipelines.yml
, pass the variable in:
- script: node ./tools/scripts/run-many.js '$(COMMANDS)' build1 build '$(environment)'
env: { NX_CLOUD_AUTH_TOKEN: $(NX_CLOUD_AUTH_TOKEN) }
The first run will likely cache, but with subsequent builds you will see it read from the cache.
Hope this helps!