Skip to content

Commit

Permalink
yml try always tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonic853 committed Aug 15, 2024
1 parent 0ae256f commit 29c6173
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ jobs:
id: read_version
run: |
git fetch --tags
last_tag=$(git describe --always --tags --abbrev=0 || echo "0.0.0")
current_version=$(npm pkg get version --workspaces=false | tr -d \")
name=$(npm pkg get name --workspaces=false | tr -d \")
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
echo $last_tag
echo $current_version
echo "last_tag=$last_tag" >> $GITHUB_OUTPUT
echo "current_version=$current_version" >> $GITHUB_OUTPUT
echo "name=$name" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 29c6173

Please sign in to comment.