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

Commit

Permalink
Fix version script (#35)
Browse files Browse the repository at this point in the history
* get version from api not checkedout

* must strip v
  • Loading branch information
mattthaber authored Nov 23, 2018
1 parent 3bcf317 commit a1fa3b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ function vercomp () {
}

step "Determining version to publish..."
last_published_version="$(curl --silent "https://api.github.com/repos/tophat/sanity-runner/releases/latest" | sed -n -e '/"tag_name":/ s/^.*"\(.*\)".*/\1/p')"

last_published_version="$(curl --silent "https://api.github.com/repos/tophat/sanity-runner/releases/latest" | sed -n -e '/"tag_name":/ s/^.*"\(.*\)".*/\1/p' | tr -d v )"

echo "Last published version is $last_published_version"

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

0 comments on commit a1fa3b3

Please sign in to comment.