Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
get version from api not checkedout (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattthaber authored Nov 22, 2018
1 parent e80a412 commit 3bcf317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function vercomp () {
}

step "Determining version to publish..."
last_published_version="$(git tag | tail -1 | tr -d v )"
last_published_version="$(curl --silent "https://api.github.com/repos/tophat/sanity-runner/releases/latest" | sed -n -e '/"tag_name":/ s/^.*"\(.*\)".*/\1/p')"
echo "Last published version is $last_published_version"

packaged_version="$(jq '.version' --raw-output package.json)"
Expand Down

0 comments on commit 3bcf317

Please sign in to comment.