chore: Release pre-release as beta on NPM (#4388)

This commit is contained in:
Link
2025-08-22 12:10:04 -07:00
committed by GitHub
parent 269a5bf5f5
commit f274ec665a
+2 -2
View File
@@ -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 }}