File tree 3 files changed +14
-3
lines changed
3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 8
8
showdev :
9
9
description : Including dev tools
10
10
default : " "
11
+ github-token :
12
+ description : Github token
13
+ required : true
11
14
12
15
runs :
13
16
using : ' composite'
17
20
- name : Generate release, if needed
18
21
shell : bash
19
22
run : HUSKY=0 pnpm dlx semantic-release
23
+ env :
24
+ GITHUB_TOKEN : ${{ inputs.github-token }}
20
25
- name : Check for new release
21
26
shell : bash
22
27
id : release-name
Original file line number Diff line number Diff line change 13
13
14
14
15
15
permissions :
16
- contents : read # This is required for actions/checkout
16
+ contents : write # This is required for actions/checkout and write to be able to write releases
17
+ pull-requests : write # to be able to comment on released pull requests
17
18
id-token : write # Access the Github JWT for AWS access
18
19
deployments : write
19
20
28
29
fetch-depth : 0 # allows us to git parse tags for release
29
30
- name : Build App
30
31
uses : ./.github/actions/build-client
32
+ with :
33
+ github-token : ${{ secrets.GITHUB_TOKEN }}
31
34
- name : Build Web Client
32
35
uses : pocket/pocket-monorepo/.github/actions/containerize@main
33
36
with :
62
65
fetch-depth : 0 # allows us to git parse tags for release
63
66
- name : Build App
64
67
uses : ./.github/actions/build-client
68
+ with :
69
+ github-token : ${{ secrets.GITHUB_TOKEN }}
65
70
# Get the AWS credentials
66
71
- name : AWS Credentials
67
72
uses : aws-actions/configure-aws-credentials@v4
@@ -125,6 +130,7 @@ jobs:
125
130
with :
126
131
prefix : " https://assets.getpocket.com/web-client"
127
132
showdev : " "
133
+ github-token : ${{ secrets.GITHUB_TOKEN }}
128
134
# Get the AWS credentials
129
135
- name : AWS Credentials
130
136
uses : aws-actions/configure-aws-credentials@v4
Original file line number Diff line number Diff line change 43
43
"plugins" : [
44
44
" @semantic-release/commit-analyzer" ,
45
45
" @semantic-release/release-notes-generator" ,
46
- " @semantic-release/changelog " ,
46
+ " @semantic-release/github " ,
47
47
" @semantic-release/git" ,
48
48
[
49
49
" @semantic-release/exec" ,
93
93
" engines"
94
94
]
95
95
}
96
- }
96
+ }
You can’t perform that action at this time.
0 commit comments