From 34ddcaf22f96fc9abf7fb97e7799f6e0f0f3388c Mon Sep 17 00:00:00 2001 From: Pavol Noha Date: Sun, 18 Feb 2024 19:47:13 +0100 Subject: [PATCH] cleanup --- package.json | 2 +- scripts/{release-tags.sh => release-refs.sh} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename scripts/{release-tags.sh => release-refs.sh} (69%) diff --git a/package.json b/package.json index 03405860..1045dcae 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "changeset": "changeset", "changeset:version": "node ./.changeset/version.mjs", "changeset:publish": "npm run build && changeset publish", - "changeset:release": "./scripts/release-tags.sh" + "changeset:release": "./scripts/release-refs.sh" }, "devDependencies": { "@changesets/changelog-github": "^0.4.8", diff --git a/scripts/release-tags.sh b/scripts/release-refs.sh similarity index 69% rename from scripts/release-tags.sh rename to scripts/release-refs.sh index 07ab9fa1..7651dd9e 100755 --- a/scripts/release-tags.sh +++ b/scripts/release-refs.sh @@ -4,7 +4,7 @@ TAGS=$(git tag --points-at HEAD) for tag in $TAGS; do if [[ $tag == *.0 ]]; then - # Keep major & minor versions (publish) + # Keep only major & minor versions continue; else # Delete patch version @@ -12,5 +12,5 @@ for tag in $TAGS; do fi done -# Push tags +# Push all the refs with annotated local tags git push --follow-tags \ No newline at end of file