From a46a2b3b340a269168fdbf7547ea7000ec6b6088 Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Tue, 29 Sep 2026 18:36:20 -0400 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index de6a3d720..7859f6494 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,8 +26,9 @@ jobs: - name: Get latest Git tag id: tag run: | - latest_tag=$(git tag --list 'v*' --sort=-v:refname | head -n 1 || echo "v0.0.0") - echo "latest=$latest_tag" >> $GITHUB_OUTPUT + latest_tag=$(git tag --list 'v*' --sort=-v:refname | head -n 1) + [ -z "$latest_tag" ] && latest_tag="v0.0.0" + echo "latest=$latest_tag" >> "$GITHUB_OUTPUT" - name: Check if package.json version is newer id: check @@ -56,6 +57,7 @@ jobs: env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: + version: "${{ steps.pkg.outputs.version }}" tag_prefix: "v" - name: Setup PNPM