@eggplanty/mycli 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/tag-release.sh +6 -0
package/package.json
CHANGED
package/scripts/tag-release.sh
CHANGED
|
@@ -29,6 +29,12 @@ if git ls-remote --tags origin "$TAG" | grep -q "$TAG"; then
|
|
|
29
29
|
exit 0
|
|
30
30
|
fi
|
|
31
31
|
|
|
32
|
+
# Ensure package.json changes are committed before tagging
|
|
33
|
+
if git diff --name-only | grep -q 'package.json' || git diff --cached --name-only | grep -q 'package.json'; then
|
|
34
|
+
echo "Error: package.json has uncommitted changes. Please commit before tagging." >&2
|
|
35
|
+
exit 1
|
|
36
|
+
fi
|
|
37
|
+
|
|
32
38
|
# Create and push tag
|
|
33
39
|
git tag "$TAG"
|
|
34
40
|
git push origin "$TAG"
|