justinhoward/papaya

View on GitHub
bin/check-version

Summary

Maintainability
Test Coverage
#!/usr/bin/env sh

tag="$(git describe --abbrev=0)"
version="$(node -p "require('./package').version")"
gt=$(node -r semver -p "require('semver').satisfies('${version}', '>=${tag}')")
test "$gt" = true