Skip to content

Commit dabb16e

Browse files
committed
Update release tags and names to use suffix format
- editor/browser should be a suffix, not prefix in tags and releases
1 parent 1811dec commit dabb16e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
id: package_version
2626
run: |
2727
VERSION=$(jq -r .version apps/editor/package.json)
28-
echo "version=editor-$VERSION" >> $GITHUB_OUTPUT
28+
echo "version=$VERSION-editor" >> $GITHUB_OUTPUT
2929
echo "raw_version=$VERSION" >> $GITHUB_OUTPUT
3030
3131
- name: Check if tag exists
@@ -64,7 +64,7 @@ jobs:
6464
- name: Generate Release Notes
6565
if: steps.check_tag.outputs.exists == 'false'
6666
run: |
67-
PREV_TAG=$(git describe --tags --match "editor-*" --abbrev=0 2>/dev/null || echo "")
67+
PREV_TAG=$(git describe --tags --match "*-editor" --abbrev=0 2>/dev/null || echo "")
6868
6969
echo "### What's new in the editor extension:" > release_notes.md
7070
echo "" >> release_notes.md
@@ -80,7 +80,7 @@ jobs:
8080
uses: softprops/action-gh-release@v2
8181
with:
8282
tag_name: ${{ steps.package_version.outputs.version }}
83-
name: Editor ${{ steps.package_version.outputs.raw_version }}
83+
name: ${{ steps.package_version.outputs.raw_version }} - editor
8484
body_path: release_notes.md
8585
discussion_category_name: "Announcements"
8686
files: apps/editor/*.vsix
@@ -98,7 +98,7 @@ jobs:
9898
id: browser_version
9999
run: |
100100
VERSION=$(jq -r .version apps/browser/src/manifest.json)
101-
echo "version=browser-$VERSION" >> $GITHUB_OUTPUT
101+
echo "version=$VERSION-browser" >> $GITHUB_OUTPUT
102102
echo "raw_version=$VERSION" >> $GITHUB_OUTPUT
103103
104104
- name: Check if tag exists
@@ -137,7 +137,7 @@ jobs:
137137
- name: Generate Release Notes
138138
if: steps.check_tag.outputs.exists == 'false'
139139
run: |
140-
PREV_TAG=$(git describe --tags --match "browser-*" --abbrev=0 2>/dev/null || echo "")
140+
PREV_TAG=$(git describe --tags --match "*-browser" --abbrev=0 2>/dev/null || echo "")
141141
142142
echo "### What's new in the browser extension:" > release_notes_browser.md
143143
echo "" >> release_notes_browser.md
@@ -153,7 +153,7 @@ jobs:
153153
uses: softprops/action-gh-release@v2
154154
with:
155155
tag_name: ${{ steps.browser_version.outputs.version }}
156-
name: Browser ${{ steps.browser_version.outputs.raw_version }}
156+
name: ${{ steps.browser_version.outputs.raw_version }} - browser
157157
body_path: release_notes_browser.md
158158
discussion_category_name: "Announcements"
159159
files: apps/browser/*.zip

0 commit comments

Comments
 (0)