Demonstrates how to inject a modules version into the compiled code, and how to
automate bumping versions via a pre-push
git hook.
npm i
- If you're working on a large project (with multiple contributors) you'd rename
the
prepush
script toprepublishOnly
inpackage.json
. This way devs can go through the PR process and a manual publish can occur once the code's been merged in.