Skip to content

Commit

Permalink
ci: Don't use git-describe as clone is shallow
Browse files Browse the repository at this point in the history
Just read the version from the package.json
  • Loading branch information
iamsergio committed May 6, 2024
1 parent a3619fe commit 851d51f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions upload_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
# Uploads the qttests-<version>.vsix package to GitHub Release
# Called by .github/workflows/package.yml

# Get latest tag:
TAG_NAME=`git describe --tags --abbrev=0`

# Drop the 'v' prefix:
VERSION=${TAG_NAME:1}
# Get latest version and tag:
VERSION=`jq -r '.version' package.json`
TAG_NAME=v$VERSION

PACKAGE_FILENAME=qttests-$VERSION.vsix

Expand Down

0 comments on commit 851d51f

Please sign in to comment.