@@ -78,13 +78,16 @@ jobs:
7878 github.event.workflow_run.head_branch == 'master' || github.ref ==
7979 ' refs/heads/master'
8080 run : |
81- yarn lerna publish \
82- --message "chore(release): bump version to %v" \
83- --skip-bump-only-releases \
84- --conventional-commits \
85- --create-release github \
86- --yes --no-private \
87- --tag-version-prefix ""
81+ git describe --exact-match --tags
82+ if [ $? -eq 128 ]; then
83+ yarn lerna publish \
84+ --message "chore(release): bump version to %v" \
85+ --skip-bump-only-releases \
86+ --conventional-commits \
87+ --create-release github \
88+ --yes --no-private \
89+ --tag-version-prefix ""
90+ fi
8891
8992
9093 publish-dev :
@@ -143,9 +146,12 @@ jobs:
143146
144147 - name : Version and publish 🚀
145148 run : |
146- yarn lerna publish 0.0.0-development-$(git rev-parse --short=7 HEAD)-$(date +%Y%m%d) \
147- --message "chore(release): bump version to %v" \
148- --skip-bump-only-releases \
149- --yes --no-private \
150- --tag-version-prefix "" \
151- --dist-tag development
149+ git describe --exact-match --tags
150+ if [ $? -eq 128 ]; then
151+ yarn lerna publish 0.0.0-development-$(git rev-parse --short=7 HEAD)-$(date +%Y%m%d) \
152+ --message "chore(release): bump version to %v" \
153+ --skip-bump-only-releases \
154+ --yes --no-private \
155+ --tag-version-prefix "" \
156+ --dist-tag development
157+ fi
0 commit comments