package.json version control

artem.z March 3, 2021

Does bitbucket have a piece of data for conditionally `npm version major | minor | patch | premajor | preminor | prepatch | prerelease` task run?

For example I'd like to have something like that 

branches:
dev:
- script   
  if ($BRANCH_NAME.match("feature/")) {
- npm version minor --no-git-tag-version
}

where $BRANCH_NAME is a name of branch we're pulling to dev, but not dev as it is right now

so I'd like to be able change version if merge-request was approved and merged

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events