From 09c4d379ee25de99e6a0444a04ef45d524c1c3bd Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Sun, 15 Mar 2026 16:54:42 -0700 Subject: [PATCH] stuff --- .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 337ce04..fea6fe1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -37,7 +37,14 @@ jobs: # fetch-depth 0 needed by GitHub Release - name: publish to NPM - run: npm publish --access=public + run: | + VERSION=$(node -e 'console.log(require("./package.json").version)') + if printf '%s' "$VERSION" | grep -q -- '-'; then + # prerelease versions get the "next" tag + npm publish --access=public --tag=next + else + npm publish --access=public + fi publish-gpr: needs: build