Skip to content

Commit ba8df41

Browse files
authored
Getting the latest tag using git instead of curl
1 parent d7c5a34 commit ba8df41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ install:
4040
script:
4141
- |
4242
PACKAGE_VERSION=$(node -p -e "require('./package.json').version")
43-
RELEASE_VERSION=$(curl --silent "https://api.github.com/repos/jupitex/node-libxml/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')
43+
RELEASE_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))
4444
echo "Package version $PACKAGE_VERSION"
4545
echo "Released version $RELEASE_VERSION"
4646
if [ "$PACKAGE_VERSION" == "$RELEASE_VERSION" ]

0 commit comments

Comments
 (0)