ci: 👷 add `git fetch --tags` to CI commands to fix semver

main
RaviAnand Mohabir 2 years ago
parent 22eb95c787
commit 4ba6e884f0

@ -14,6 +14,7 @@ steps:
- git config --global user.email "moravrav@gmail.com" - git config --global user.email "moravrav@gmail.com"
- git config --global user.name "RaviAnand Mohabir" - git config --global user.name "RaviAnand Mohabir"
- git config --global url."https://$GIT_USERNAME:$GIT_TOKEN@gitea.ravianand.me/".insteadOf "https://gitea.ravianand.me/" - git config --global url."https://$GIT_USERNAME:$GIT_TOKEN@gitea.ravianand.me/".insteadOf "https://gitea.ravianand.me/"
- git fetch --tags
- npm i -g standard-version - npm i -g standard-version
- 'standard-version --releaseCommitMessageFormat "chore(release): {{currentTag}} [CI SKIP]"' - 'standard-version --releaseCommitMessageFormat "chore(release): {{currentTag}} [CI SKIP]"'
- git push --follow-tags origin main - git push --follow-tags origin main

Loading…
Cancel
Save