We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eceffda commit 870bd0bCopy full SHA for 870bd0b
.github/workflows/release.yml
@@ -51,14 +51,8 @@ jobs:
51
- name: Create Version
52
if: ${{ !inputs.publish-only }}
53
run: |
54
- VERSION_BEFORE=$(node -p 'require("./lerna.json").version')
55
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"
+ git describe --exact-match --tags HEAD || { echo "::error::No version tag created on HEAD"; exit 1; }
62
- name: Set Current Version
63
64
0 commit comments