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 }}