Skip to content

Commit 3c2dd95

Browse files
committed
Add editor prefix to release tags and use raw version for release names
- a tag without editor prefix is created [Image] should have such
1 parent c776832 commit 3c2dd95

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/workflows/github-release.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
id: package_version
2626
run: |
2727
VERSION=$(jq -r .version apps/editor/package.json)
28-
echo "version=$VERSION" >> $GITHUB_OUTPUT
28+
echo "version=editor-$VERSION" >> $GITHUB_OUTPUT
29+
echo "raw_version=$VERSION" >> $GITHUB_OUTPUT
2930
3031
- name: Check if tag exists
3132
id: check_tag
@@ -63,7 +64,7 @@ jobs:
6364
- name: Generate Release Notes
6465
if: steps.check_tag.outputs.exists == 'false'
6566
run: |
66-
PREV_TAG=$(git describe --tags --match "[0-9]*" --abbrev=0 2>/dev/null || echo "")
67+
PREV_TAG=$(git describe --tags --match "editor-*" --abbrev=0 2>/dev/null || echo "")
6768
6869
echo "### What's new in the editor extension:" > release_notes.md
6970
echo "" >> release_notes.md
@@ -79,7 +80,7 @@ jobs:
7980
uses: softprops/action-gh-release@v2
8081
with:
8182
tag_name: ${{ steps.package_version.outputs.version }}
82-
name: Editor ${{ steps.package_version.outputs.version }}
83+
name: Editor ${{ steps.package_version.outputs.raw_version }}
8384
body_path: release_notes.md
8485
discussion_category_name: "Announcements"
8586
files: apps/editor/*.vsix

0 commit comments

Comments
 (0)