Skip to content

Commit 34747fa

Browse files
authored
Merge pull request #1460 from arturcic/feature/update-examples
Update oldTag retrieval in release workflow
2 parents 89e709a + ad603ee commit 34747fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
# Finding the version from release tag
115115
116116
$newTag = "${{steps.gitversion.outputs.majorMinorPatch}}"
117-
$oldTag = $(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1)).Trim("v")
117+
$oldTag = cat package.json | ConvertFrom-Json | Select-Object -ExpandProperty version
118118
echo "Old tag: $oldTag"
119119
echo "New tag: $newTag"
120120

0 commit comments

Comments
 (0)