mirror of
https://github.com/asyouplz/SpeechNote.git
synced 2026-07-22 16:30:31 +00:00
fix(release): drop v prefix from release tags
This commit is contained in:
parent
864d853c2a
commit
56a61172c0
4 changed files with 8 additions and 6 deletions
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
"branches": [
|
||||
"main"
|
||||
],
|
||||
"tagFormat": "${version}",
|
||||
"plugins": [
|
||||
[
|
||||
"@semantic-release/commit-analyzer",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
module.exports = {
|
||||
branches: ['main'],
|
||||
tagFormat: '${version}',
|
||||
plugins: [
|
||||
'@semantic-release/commit-analyzer',
|
||||
'@semantic-release/release-notes-generator',
|
||||
|
|
|
|||
|
|
@ -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}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue