To publish an npm package the version number in package.json is used. For it to succesfully publish a unique number must be added. Otherwise, in the Azure pipeline the build will give an error or warning and then it will not publish.
Is it possible to conditionally run the npm publish task which only runs if a certain tag is present in the commit?
A similar question has been asked on: https://learn.microsoft.com/en-us/azure/devops/pipelines/targets/npm?view=vsts&tabs=yaml