Skip to content

Commit bb0b9f0

Browse files
Merge pull request #48 from mendix/source-branch-fix-for-automated-mr
fix: update version calculation method in release workflow
2 parents 46114b0 + fb384c1 commit bb0b9f0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: |
3232
# Use npm version to calculate the next version without modifying files
3333
CURRENT_VERSION=$(node -p "require('./package.json').version")
34-
NEW_VERSION=$(npm version ${{ github.event.inputs.version }} --no-git-tag-version)
34+
NEW_VERSION=$(npx semver $CURRENT_VERSION -i ${{ github.event.inputs.version }})
3535
3636
# Restore package.json to avoid dirty state
3737
git checkout package.json package-lock.json 2>/dev/null || true
@@ -106,6 +106,7 @@ jobs:
106106
name: ${{ steps.bump.outputs.version }}
107107
body: ${{ steps.changelog.outputs.notes }}
108108
files: ${{ steps.pack.outputs.tgz }}
109+
target_commitish: ${{ github.sha }}
109110
fail_on_unmatched_files: true
110111
draft: false
111112
prerelease: false

0 commit comments

Comments
 (0)