Skip to content

Commit 3aabfe4

Browse files
committed
ci: adding pre-release logic
Signed-off-by: Pawel Psztyc <[email protected]>
1 parent 26bf4a8 commit 3aabfe4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/deployment.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,12 @@ jobs:
9090
body: |
9191
${{ steps.Changelog.outputs.changelog }}
9292
draft: false
93-
prerelease: false
93+
prerelease: ${{ contains( steps.package-node-version.outputs.version, '-beta' ) }}
9494
- run: npm publish --access public
95+
if: ${{ !contains( steps.package-node-version.outputs.version, '-beta' ) }}
96+
env:
97+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
98+
- run: npm publish --access public --tag beta
99+
if: ${{ contains( steps.package-node-version.outputs.version, '-beta' ) }}
95100
env:
96101
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)