We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aabbd80 commit 3d77c60Copy full SHA for 3d77c60
.github/workflows/publish.yml
@@ -71,4 +71,13 @@ jobs:
71
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72
73
- name: Publish to npm
74
- run: pnpm publish -r --filter "{packages/*}" --no-git-checks --tag latest
+ run: |
75
+ VERSION="${{ steps.version.outputs.VERSION }}"
76
+ # Check if version contains pre-release identifier
77
+ if [[ "$VERSION" =~ -[a-zA-Z0-9.-]+$ ]]; then
78
+ # This is a pre-release version
79
+ pnpm publish -r --filter "{packages/*}" --no-git-checks --tag beta
80
+ else
81
+ # This is a stable release
82
+ pnpm publish -r --filter "{packages/*}" --no-git-checks --tag latest
83
+ fi
0 commit comments