File tree Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 1- name : Publish to npm
1+ name : publish
2+ run-name : Publishing ${{ github.event.inputs.release_type || 'stable' }} release
23
34on :
45 workflow_dispatch :
6+ inputs :
7+ release-type :
8+ description : ' Release type'
9+ required : true
10+ default : ' stable'
11+ type : choice
12+ options :
13+ - stable
14+ - alpha
15+ - beta
516
617permissions :
718 id-token : write
4657 - name : Semantic Release
4758 run : |
4859 npm whoami
49- npx semantic-release
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
5065 env :
5166 GITHUB_TOKEN : ${{ secrets.PRIVATE_GITHUB_TOKEN }}
5267 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