Increment patch number on commit

This commit is contained in:
Matt McWilliams 2023-02-19 01:18:03 -05:00
parent 6116ada2fd
commit b672921c84
2 changed files with 8 additions and 1 deletions

3
scripts/pre_commit.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
npm run patch

View File

@ -12,4 +12,8 @@ for i in "${fileArr[@]}"
do
tmp=$(mktemp)
VERSION="$version" jq '.version = env.VERSION' "$i" > "$tmp" && mv "$tmp" "$i"
done
done
npm i
cd app
npm i