Skip to content

Commit

Permalink
♻️ci: check tag has been released (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marukome0743 authored Oct 22, 2024
1 parent 0f3271c commit a6a6d37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Check if the tag has already been released
run: |
if [[ $(git tag -l $VERSION) ]]; then
echo TAG_EXISTS=true >> $GITHUB_ENV
fi
- name: Create release
if: env.TAG_EXISTS != 'true'
run: gh release create $VERSION --generate-notes -t "$REPO_NAME $VERSION"
env:
GH_TOKEN: ${{ github.token }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rasnage",
"version": "0.5.2",
"version": "0.5.3",
"private": true,
"scripts": {
"dev": "next dev --turbo",
Expand Down

0 comments on commit a6a6d37

Please sign in to comment.