File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,16 @@ name: Publish to npm
2
2
3
3
on :
4
4
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
5
15
6
16
permissions :
7
17
id-token : write
46
56
- name : Semantic Release
47
57
run : |
48
58
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
50
64
env :
51
65
GITHUB_TOKEN : ${{ secrets.PRIVATE_GITHUB_TOKEN }}
52
66
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"branches": [
3
- "main"
3
+ "main",
4
+ {
5
+ "name": "beta",
6
+ "prerelease": true
7
+ },
8
+ {
9
+ "name": "alpha",
10
+ "prerelease": true
11
+ }
4
12
]
5
13
}
You can’t perform that action at this time.
0 commit comments