Skip to content

Commit

Permalink
chore: skip github releases for alpha (#16733)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 21, 2024
1 parent b45922a commit 76fbbba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
- name: Get pkgName for tag
id: tag
run: |
# skip if alpha
if [[ $GITHUB_REF_NAME =~ alpha ]]; then
exit 0
fi
# matching v2.0.0 / v2.0.0-beta.8 etc
if [[ $GITHUB_REF_NAME =~ ^v.+ ]]; then
pkgName="vite"
Expand All @@ -31,6 +36,8 @@ jobs:
echo "pkgName=$pkgName" >> $GITHUB_OUTPUT
- name: Create Release for Tag
# only run if tag is not alpha
if: steps.tag.outputs.pkgName
id: release_tag
uses: yyx990803/release-tag@master
env:
Expand Down

0 comments on commit 76fbbba

Please sign in to comment.