Skip to content

Commit 64e2ed9

Browse files
committed
Update release workflow to handle preview and beta tags
1 parent f42e3cd commit 64e2ed9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release-viewer.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,11 @@ jobs:
4040
working-directory: applications/viewer
4141
env:
4242
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
43-
run: npm publish --access public
43+
run: |
44+
if [[ "${{ env.TAG }}" == *"-preview"* ]]; then
45+
npm publish --access public --tag preview
46+
elif [[ "${{ env.TAG }}" == *"-beta"* ]]; then
47+
npm publish --access public --tag beta
48+
else
49+
npm publish --access public
50+
fi

0 commit comments

Comments
 (0)