conventional-changelog / standard-version

:trophy: Automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org
ISC License
7.67k stars 792 forks source link

standard-version only bumping patch version in pipeline [azure] #958

Closed ThatOneYohi closed 10 months ago

ThatOneYohi commented 10 months ago

Describe the bug I'm not sure whether it's a bug or whether I've missed something but I'm giving it a shot :) I've created a pipeline that's incrementing the version and pushes the changes to master but I've noticed that when I commit feature changes for instance, locally the version is bumped correctly, yet in the pipeline only the patch version is being incremented.

Current behavior locally: from version 1.0.31 -> 1.1.0

in pipeline: from version 1.0.31 -> 1.0.32

Expected behavior the pipeline should increment the same as it did locally

Environment

Possible Solution

Additional context pipeline yml: `trigger:

pool: name: default

variables: HUSKY: 0 husky_skip_init: true

steps:

TimothyJones commented 10 months ago

I assume you figured this out already, but for future users- you need to set checkout to be a full checkout:

https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/steps-checkout?view=azure-pipelines