Skip to content

Commit be937e8

Browse files
refine the tag created version it missed the major version number (#75)
##### Objective I want to fix the issue that the github tag added by CI missed the major version. ![image](https://user-images.githubusercontent.com/68938334/106226695-baf59980-6222-11eb-99ad-2a2285543961.png) ##### Abstractions <!-- How to do the changes, or the algorithm --> ##### Tests performed it is hard to test, it should verify by CI ##### Screen shot <!-- GIF screen shot is preferred, this helps reviewers and testers understand what's the behavior changed -->
1 parent 99daee4 commit be937e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# See https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions
3131
run: |
3232
$version=node -p "require('./package.json').version"
33-
$version=$version.substring(1)+"-${{github.sha}}"
33+
$version=$version+"-${{github.sha}}"
3434
echo "::set-output name=VERSION::$version"
3535
shell: pwsh
3636

0 commit comments

Comments
 (0)