Skip to content

Commit 84f7146

Browse files
authored
fix(ci):fixed version tags #40
fix(ci):fixed version tags
2 parents 913421f + 031ae51 commit 84f7146

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build_release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ name: Release Build
2121
on:
2222
push:
2323
tags:
24-
- "[0-9]+.[0-9]+.[0-9]+*"
24+
- "v[0-9]+.[0-9]+.[0-9]+*"
2525
workflow_dispatch:
2626
inputs:
2727
version:
2828
description: |
29-
Target version (e.g., 1.0.0), will create a tag named '<version>' and update package.json version
29+
Target version (e.g., 1.0.0), will create a tag named 'v<version>' and update package.json version
3030
required: true
3131
type: string
3232

@@ -92,7 +92,7 @@ jobs:
9292
git push
9393
9494
# For local build, needn't push, the tag will be created by `gh release create`
95-
git tag -s "${{ steps.semver.outputs.version }}" -m "Release v${{ steps.semver.outputs.version }}"
95+
git tag -s "v${{ steps.semver.outputs.version }}" -m "Release v${{ steps.semver.outputs.version }}"
9696
9797
- name: Get current tag
9898
id: get_current_tag

0 commit comments

Comments
 (0)