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 e049e96 commit ea56062Copy full SHA for ea56062
.github/workflows/publish.yml
@@ -1,5 +1,8 @@
1
name: Publish to npm
2
-run-name: Publishing ${{ github.event.inputs.release-type }} release
+run-name: >
3
+ Publishing
4
+ ${{ github.ref_name == 'main' && 'stable' || github.ref_name == 'beta' && 'beta' || github.ref_name == 'alpha' && 'alpha' || 'unknown' }}
5
+ release
6
7
on:
8
workflow_dispatch:
@@ -57,11 +60,7 @@ jobs:
57
60
- name: Semantic Release
58
61
run: |
59
62
npm whoami
- if [ "${{ github.event.inputs.release-type }}" != "stable" ]; then
- npx semantic-release --tag ${{ github.event.inputs.release-type }}
- else
63
- npx semantic-release
64
- fi
+ npx semantic-release
65
env:
66
GITHUB_TOKEN: ${{ secrets.PRIVATE_GITHUB_TOKEN }}
67
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments