Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions autify-cli/scripts/changesets-tag.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/env bash
# Emits `New tag:` for changesets/action to create the GitHub release.
# Creates the release tag locally and emits `New tag:` so changesets/action
# pushes it and creates the matching GitHub release.
set -euo pipefail

VERSION=$(jq -r .version "$(dirname "$0")/../package.json")
echo "New tag: @autifyhq/autify-cli@${VERSION}"
TAG="@autifyhq/autify-cli@${VERSION}"

if ! git rev-parse -q --verify "refs/tags/${TAG}" >/dev/null; then
git tag "${TAG}"
fi
echo "New tag: ${TAG}"
Loading