Skip to content

Instantly share code, notes, and snippets.

@joshwiens
Last active April 2, 2018 21:42
Show Gist options
  • Save joshwiens/83dfaa12633ecfdaadf38730590b1c37 to your computer and use it in GitHub Desktop.
Save joshwiens/83dfaa12633ecfdaadf38730590b1c37 to your computer and use it in GitHub Desktop.
webpackLatest=$(npm view webpack dist-tags --json | jq -c '.latest')
webpackNext=$(npm view webpack dist-tags --json | jq -c '.next')
compare-versions( ${webpackLatest}, ${webpackNext});
if [[ $(compver --name webpack --gte next --lt latest) < 1 ]] ; then echo n00p; else echo run tests ; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment