Skip to content

Commit 099f921

Browse files
authored
Merge pull request #352 from leung018/fix-public-release-workflow
Fix extract version
2 parents 39b03aa + ae0c601 commit 099f921

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/extension-public-release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ jobs:
2727
- run: yarn install --immutable
2828
- name: Extract Version
2929
run: |
30-
# Remove 'v' prefix and anything after a hyphen
31-
VERSION=$(echo "${{ env.TAG_NAME }}" | sed -E 's/^v//; s/-.*//')
30+
VERSION=$(echo "${{ env.TAG_NAME }}" | sed -E 's/^.*-v([0-9]+(\.[0-9]+){0,3}).*$/\1/')
3231
echo "VERSION=$VERSION" >> $GITHUB_ENV
3332
- name: Zip
3433
run: yarn zip

0 commit comments

Comments
 (0)