Skip to content

Commit fcad151

Browse files
Remove v prefix from release tags and GitHub releases (#895)
Release tags and GitHub releases were being created with a `v` prefix (e.g., `v6.7.0`) instead of bare version numbers (e.g., `6.7.0`). ## Changes - **`.github/workflows/release.yml`**: Removed `v` prefix from all tag references: - Tag existence check - `git tag` creation and push - `gh release create` invocation - Updated inline comment to reflect the new format <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/jsonrainbow/json-schema/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: DannyvdSluijs <618940+DannyvdSluijs@users.noreply.github.com>
1 parent 4580ba2 commit fcad151

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# 3. The workflow will:
77
# - Move unreleased changes in CHANGELOG.md to a new version section
88
# - Create a commit with the updated changelog
9-
# - Create and push a git tag (e.g., v6.7.0)
9+
# - Create and push a git tag (e.g., 6.7.0)
1010
# - Create a GitHub release with the changelog as release notes
1111
#
1212
# Prerequisites:
@@ -81,18 +81,18 @@ jobs:
8181
- name: "Create and push tag"
8282
run: |
8383
# Check if tag already exists
84-
if git rev-parse "v${{ inputs.version }}" >/dev/null 2>&1; then
85-
echo "Error: Tag v${{ inputs.version }} already exists"
84+
if git rev-parse "${{ inputs.version }}" >/dev/null 2>&1; then
85+
echo "Error: Tag ${{ inputs.version }} already exists"
8686
exit 1
8787
fi
8888
89-
git tag -a "v${{ inputs.version }}" -m "Release ${{ inputs.version }}"
90-
git push origin "v${{ inputs.version }}"
89+
git tag -a "${{ inputs.version }}" -m "Release ${{ inputs.version }}"
90+
git push origin "${{ inputs.version }}"
9191
9292
- name: "Create GitHub Release"
9393
env:
9494
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9595
run: |
96-
gh release create "v${{ inputs.version }}" \
96+
gh release create "${{ inputs.version }}" \
9797
--title "${{ inputs.version }}" \
9898
--notes-file /tmp/release-notes.md

0 commit comments

Comments
 (0)