File tree 3 files changed +18
-3
lines changed
3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,23 @@ name: release
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ inputs :
6
+ arguments :
7
+ description : cli arguments
8
+ default : ' '
9
+ required : false
5
10
6
11
env :
12
+ arguments : ${{ github.event.inputs.arguments }}
7
13
node : 20
8
14
9
15
permissions :
16
+ checks : write
10
17
contents : write
11
18
id-token : write
12
19
issues : write
13
20
pull-requests : write
21
+ statuses : write
14
22
15
23
jobs :
16
24
release :
@@ -19,14 +27,15 @@ jobs:
19
27
- uses : actions/checkout@v3
20
28
with :
21
29
fetch-depth : 0
22
- persist-credentials : false
23
30
- uses : actions/setup-node@v3
24
31
with :
25
32
cache : npm
26
33
node-version : ${{ env.node }}
34
+ - run : git config user.email '${{ secrets.GH_EMAIL }}'
35
+ - run : git config user.name '${{ secrets.GH_NAME }}'
27
36
- run : npm ci
28
37
- run : npm audit signatures
29
- - run : npm run release -- --npm.skipChecks
38
+ - run : npm run release -- --npm.skipChecks ${{ env.arguments }}
30
39
env :
31
40
GITHUB_TOKEN : ${{ github.token }}
32
41
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
1
+ //registry.npmjs.org/:_authToken = ${ NPM_TOKEN }
2
+ //registry.npmjs.org:_authToken = ${ NPM_TOKEN }
3
+
1
4
engine-strict = true
Original file line number Diff line number Diff line change 20
20
"after:bump" : " npm run build"
21
21
},
22
22
"npm" : {
23
- "publish" : true
23
+ "publish" : true ,
24
+ "publishArgs" : [
25
+ " --provenance"
26
+ ]
24
27
},
25
28
"plugins" : {
26
29
"@release-it/conventional-changelog" : {
You can’t perform that action at this time.
0 commit comments