From 4b1ab8f7b39b626bb4fc8cc747e8c11afc511bac Mon Sep 17 00:00:00 2001 From: Simon Mika Date: Thu, 11 Dec 2025 15:17:59 +0100 Subject: [PATCH] Update publish step to conditionally tag prereleases Modify publish step to handle version tagging for prereleases. --- .github/workflows/publish.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 610fa19..f796ec3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,4 +24,11 @@ jobs: - name: Build run: npm run build - name: Publish - run: npm publish --provenance --access public + run: | + VERSION=$(node -p "require('./package.json').version") + if [[ "$VERSION" == *-* ]]; then + npm publish --access public --tag prerelease + else + npm publish --access public + fi + shell: bash