File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed
Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 1- name : Publish to npm
1+ name : Publish to npm - ${{ inputs.release-type }}
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ release-type :
7+ description : ' Release type'
8+ required : true
9+ default : ' alpha'
10+ type : choice
11+ options :
12+ - alpha
13+ - beta
14+ - stable
515
616permissions :
717 id-token : write
4656 - name : Semantic Release
4757 run : |
4858 npm whoami
49- npx semantic-release
59+ if [ "${{ github.event.inputs.release-type }}" != "stable" ]; then
60+ npx semantic-release --tag ${{ github.event.inputs.release-type }}
61+ else
62+ npx semantic-release
63+ fi
5064 env :
5165 GITHUB_TOKEN : ${{ secrets.PRIVATE_GITHUB_TOKEN }}
5266 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 11{
22 "branches": [
3- "main"
3+ "main",
4+ {
5+ "name": "beta",
6+ "prerelease": true
7+ },
8+ {
9+ "name": "alpha",
10+ "prerelease": true
11+ }
412 ]
513}
You can’t perform that action at this time.
0 commit comments