From f274ec665a6802a75c79fea568f9f105f58f6048 Mon Sep 17 00:00:00 2001 From: Link Date: Fri, 22 Aug 2025 15:10:04 -0400 Subject: [PATCH] chore: Release pre-release as beta on NPM (#4388) --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c7639a9a7..120f758c1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,8 +39,8 @@ jobs: - run: yarn pack working-directory: packages/${{ matrix.package }} - # If the action is running from a release use the latest tag, otherwise use the next tag - - run: npm publish package.tgz --tag ${{ github.event_name == 'release' && github.event.action == 'published' && 'latest' || 'next' }} --access public --provenance + # If the action is running from a release, if prerelease use beta tag else use latest tag, otherwise use the next tag + - run: npm publish package.tgz --tag ${{ github.event_name == 'release' && github.event.action == 'published' && (github.event.release.prerelease && 'beta' || 'latest') || 'next' }} --access public --provenance working-directory: packages/${{ matrix.package }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}