The idea is to trigger npm version patch
to increase the version from 1.2.3 to 1.2.4 once you press the button of the image:
So every change in the develop's branch means a new build version in the application.
I have tried using .git/hooks/post-merge
and running the command if the merged branch name is develop. It works but only if I perform a merge in the console of visual studio but not when clicking the bitbucket merge button.
I'm also trying to create a java maven plugin with the developer atlassian SDK but i'm not getting this working, it's outdated with not too much documentation and i'm not even succeed in the build process.
Any idea?