Skip to content

Commit 3d77c60

Browse files
author
skychx
committed
ci(config): update
1 parent aabbd80 commit 3d77c60

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,13 @@ jobs:
7171
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7272

7373
- name: Publish to npm
74-
run: pnpm publish -r --filter "{packages/*}" --no-git-checks --tag latest
74+
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

Comments
 (0)