We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35a939a commit 6440d58Copy full SHA for 6440d58
1 file changed
.github/workflows/release_package.yml
@@ -122,6 +122,14 @@ jobs:
122
version: ${{ env.NEW_VERSION }}
123
operation: release
124
125
+ - name: Ensure tag does not already exist
126
+ run: |
127
+ git fetch --tags origin
128
+ if git rev-parse "refs/tags/${{ env.NEW_VERSION }}" >/dev/null 2>&1; then
129
+ echo "Tag ${{ env.NEW_VERSION }} already exists on origin."
130
+ exit 1
131
+ fi
132
+
133
# Commit changes
134
- name: Sync lockfile after version bump
135
run: pnpm install --lockfile-only
0 commit comments