Can someone validate azure pipeline yml for nx affected building in Azure DevOps? First timer. #7592
MichalLechowski
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I've been trying to configure Angular project based on NX to build properly in Azure Pipelines. Both for PR and CI purposes. I got it working but I am not sure if it's correct. The examples and the docs are too entry-level and I feel lack of proper documentation for real-life scenarios.
The idea is pretty default: use only affected build for incoming pull requests, validate PR build to allow completing PR and then trigger CI build on main branch.
My configuration atm is as follows:
My concerns are mostly --base parameters. Are they all right? It works, when I change something in X library then the pipeline log triggers affected build for only that part of angular project. But I am not sure if that's how it should be.
I don't know if I fully understand the affected process. As I see it:
The template to install-node-modules.yml, if you need take a look, too:
It's only conditional caching of nugets.
Beta Was this translation helpful? Give feedback.
All reactions