fix(release): drop v prefix from release tags

This commit is contained in:
tslee 2026-05-18 15:57:51 +09:00
parent 864d853c2a
commit 56a61172c0
4 changed files with 8 additions and 6 deletions

View file

@ -3,11 +3,11 @@ name: Release Pipeline
on:
push:
tags:
- 'v*'
- '[0-9]*.[0-9]*.[0-9]*'
workflow_dispatch:
inputs:
version:
description: 'Release version (e.g., v3.1.0)'
description: 'Release version (e.g., 3.1.0)'
required: true
type: string
@ -40,10 +40,10 @@ jobs:
echo "Version: $VERSION"
# Validate version format (v0.0.0)
if ! [[ $VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9]+)?$ ]]; then
# Validate version format (0.0.0)
if ! [[ $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9]+)?$ ]]; then
echo "❌ Invalid version format: $VERSION"
echo "Expected format: v0.0.0 or v0.0.0-beta"
echo "Expected format: 0.0.0 or 0.0.0-beta"
exit 1
fi

View file

@ -2,6 +2,7 @@
"branches": [
"main"
],
"tagFormat": "${version}",
"plugins": [
[
"@semantic-release/commit-analyzer",

View file

@ -1,5 +1,6 @@
module.exports = {
branches: ['main'],
tagFormat: '${version}',
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',

View file

@ -162,7 +162,7 @@ git add manifest.json package.json versions.json
git commit -m "chore: bump version to ${NEW_VERSION}"
# Create tag
TAG="v${NEW_VERSION}"
TAG="${NEW_VERSION}"
echo "🏷️ Creating tag: ${TAG}..."
git tag -a "$TAG" -m "Release ${TAG}"