Add tag script
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
for pkg in $(ls packages); do
|
||||
version=$(sed -nr 's/ +"version": "(.+)",/\1/p' packages/$pkg/package.json)
|
||||
status=$(git status | grep "nothing to commit")
|
||||
|
||||
if [[ -z "$status" ]]; then
|
||||
echo "Can't tag with uncommitted changes"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git tag "$pkg/$version" >/dev/null 2>&1
|
||||
done
|
||||
|
||||
git push --tags
|
||||
Reference in New Issue
Block a user