Skip to content

Commit ea56062

Browse files
chore: update CICD
1 parent e049e96 commit ea56062

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Publish to npm
2-
run-name: Publishing ${{ github.event.inputs.release-type }} release
2+
run-name: >
3+
Publishing
4+
${{ github.ref_name == 'main' && 'stable' || github.ref_name == 'beta' && 'beta' || github.ref_name == 'alpha' && 'alpha' || 'unknown' }}
5+
release
36
47
on:
58
workflow_dispatch:
@@ -57,11 +60,7 @@ jobs:
5760
- name: Semantic Release
5861
run: |
5962
npm whoami
60-
if [ "${{ github.event.inputs.release-type }}" != "stable" ]; then
61-
npx semantic-release --tag ${{ github.event.inputs.release-type }}
62-
else
63-
npx semantic-release
64-
fi
63+
npx semantic-release
6564
env:
6665
GITHUB_TOKEN: ${{ secrets.PRIVATE_GITHUB_TOKEN }}
6766
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)