mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
chore: Release pre-release as beta on NPM (#4388)
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user