Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nohaapav committed Feb 18, 2024
1 parent ac9072b commit 34ddcaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions scripts/release-tags.sh → scripts/release-refs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ 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
git tag -d $tag
fi
done

# Push tags
# Push all the refs with annotated local tags
git push --follow-tags

0 comments on commit 34ddcaf

Please sign in to comment.