Skip to content

Commit a0076c1

Browse files
fix: the release Action is creating pre-release version (#152)
1 parent 3cafa38 commit a0076c1

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
@@ -295,7 +295,7 @@ jobs:
295295
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
296296
GITHUB_REPOSITORY: ${{ github.repository }}
297297
GITHUB_REF: ${{ github.ref }}
298-
run: errout=$(mktemp); gh release create --prerelease "$(cat dist/releasetag.txt)" -R "${GITHUB_REPOSITORY}" -F dist/changelog.md -t "$(cat dist/releasetag.txt)" --target "${GITHUB_REF}" 2> "$errout" && true; exitcode=$?; if [ $exitcode -ne 0 ] && ! grep -q "Release.tag_name already exists" "$errout"; then cat "$errout"; exit $exitcode; fi
298+
run: errout=$(mktemp); gh release create "$(cat dist/releasetag.txt)" -R "${GITHUB_REPOSITORY}" -F dist/changelog.md -t "$(cat dist/releasetag.txt)" --target "${GITHUB_REF}" 2> "$errout" && true; exitcode=$?; if [ $exitcode -ne 0 ] && ! grep -q "Release.tag_name already exists" "$errout"; then cat "$errout"; exit $exitcode; fi
299299
- name: Extract Version
300300
id: extract-version
301301
if: ${{ failure() }}

0 commit comments

Comments
 (0)