Skip to content

Commit 870bd0b

Browse files
wip
1 parent eceffda commit 870bd0b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,8 @@ jobs:
5151
- name: Create Version
5252
if: ${{ !inputs.publish-only }}
5353
run: |
54-
VERSION_BEFORE=$(node -p 'require("./lerna.json").version')
5554
pnpm lerna version --no-private --conventional-commits --yes
56-
VERSION_AFTER=$(node -p 'require("./lerna.json").version')
57-
if [ "$VERSION_BEFORE" = "$VERSION_AFTER" ]; then
58-
echo "::error::lerna version did not create a new version (still $VERSION_BEFORE). No new conventional commits?"
59-
exit 1
60-
fi
61-
echo "Version bumped: $VERSION_BEFORE -> $VERSION_AFTER"
55+
git describe --exact-match --tags HEAD || { echo "::error::No version tag created on HEAD"; exit 1; }
6256
- name: Set Current Version
6357
if: ${{ !inputs.publish-only }}
6458
run: |

0 commit comments

Comments
 (0)