18F/cg-dashboard

View on GitHub
deploy/npm-version.sh

Summary

Maintainability
Test Coverage
PACKAGE_VERSION=$(cat package.json \
  | grep version \
  | head -1 \
  | awk -F: '{ print $2 }' \
  | sed 's/[",]//g' \
  | tr -d '[[:space:]]')

echo $PACKAGE_VERSION