Skip to content

Commit fb75318

Browse files
committed
fix: pnpm version from-git ignores pre-release identifier
1 parent 262d1c9 commit fb75318

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
- run: pnpm install
2323
- run: git config --global user.name "${{ github.actor }}"
2424
- run: git config --global user.email "github-action-${{ github.actor }}@users.noreply.github.com"
25-
- run: pnpm version from-git --no-git-tag-version
25+
- run: |
26+
pnpm version --no-git-tag-version "$(git describe --tags --match "v*" --abbrev=0)"
2627
- run: pnpm publish --access public --no-git-checks
2728
env:
2829
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)