Skip to content

Commit fd9935c

Browse files
committed
update ci to release beta
1 parent 426a1ee commit fd9935c

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/release.yaml

+17-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,23 @@ jobs:
2727
- name: Install dependencies
2828
run: pnpm install
2929

30-
- name: Release the package
31-
run: pnpm run release
30+
- name: Check if beta release
31+
id: check-beta
32+
run: |
33+
if [[ ${{ github.ref_name }} =~ -beta ]]; then
34+
echo "IS_BETA=true" >> $GITHUB_OUTPUT
35+
else
36+
echo "IS_BETA=false" >> $GITHUB_OUTPUT
37+
fi
38+
39+
- name: Release beta package
40+
if: steps.check-beta.outputs.IS_BETA == 'true'
41+
run: pnpm run release:beta
3242
env:
3343
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3444

35-
45+
- name: Release stable package
46+
if: steps.check-beta.outputs.IS_BETA == 'false'
47+
run: pnpm run release
48+
env:
49+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)