Currently the build and publish pipeline runs on all branches. That is not the desired behaviour and moreover annoying. I'll have a go at this myself asap.