Skip to content

Commit 4aeb729

Browse files
committed
chore: drop prelease auto creation
1 parent 198bf3c commit 4aeb729

1 file changed

Lines changed: 2 additions & 15 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Release
22

33
on:
44
push:
5-
branches:
6-
- main
75
tags:
86
- 'v*'
97

@@ -69,7 +67,7 @@ jobs:
6967
name: Create Release
7068
runs-on: ubuntu-latest
7169
needs: build
72-
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main')
70+
if: startsWith(github.ref, 'refs/tags/')
7371

7472
steps:
7573
- name: Checkout
@@ -91,24 +89,13 @@ jobs:
9189
- name: Determine version
9290
id: version
9391
run: |
94-
if [[ "${{ github.ref }}" == refs/tags/v* ]]; then
95-
echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
96-
echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
97-
echo "prerelease=false" >> $GITHUB_OUTPUT
98-
else
99-
VERSION=$(node -p "require('./package.json').version")
100-
SHORT_SHA=$(git rev-parse --short HEAD)
101-
echo "version=${VERSION}-main.${SHORT_SHA}" >> $GITHUB_OUTPUT
102-
echo "tag=v${VERSION}-main.${SHORT_SHA}" >> $GITHUB_OUTPUT
103-
echo "prerelease=true" >> $GITHUB_OUTPUT
104-
fi
92+
echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
10593
10694
- name: Create Release
10795
uses: softprops/action-gh-release@v2
10896
with:
10997
tag_name: ${{ steps.version.outputs.tag }}
11098
name: ${{ steps.version.outputs.tag }}
111-
prerelease: ${{ steps.version.outputs.prerelease }}
11299
generate_release_notes: true
113100
files: release/*
114101
env:

0 commit comments

Comments
 (0)