deploying affected with nx mono repo using bitbucket pipeline based on tag
I am using bitbucket pipelines and NX for a mono repo.
I am trying to use build and deploy affected using our tag based deployment, but the problem is I need to point point to a branch:
nx affected --target build --base=origin/master~1
and when I use a tag, it is a detached head and I am getting an error in pipelines: