Skip to content

Instantly share code, notes, and snippets.

@paazmaya
Created June 28, 2017 08:23
Show Gist options
  • Save paazmaya/0a8e4683a87bfae5a6450d2937264f1f to your computer and use it in GitHub Desktop.
Save paazmaya/0a8e4683a87bfae5a6450d2937264f1f to your computer and use it in GitHub Desktop.
Compare latest git tag against latest npm published version
find . -maxdepth 2 -type d -name '.git' \
-exec sh -c '(cd {}/.. && pwd && git describe --tags && npm info . dist-tags.latest)' ';'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment