File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : CI/CD
2
2
on : [push, pull_request]
3
+ permissions :
4
+ contents : read
3
5
jobs :
4
6
build :
5
7
runs-on : ubuntu-latest
86
88
87
89
release :
88
90
runs-on : ubuntu-latest
89
- env :
90
- GH_TOKEN : ${{ secrets.GH_PERSONAL_TOKEN }}
91
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
91
+ permissions :
92
+ issues : write
93
+ contents : write
94
+ pull-requests : write
95
+ deployments : write
92
96
needs : [build, test]
93
97
if : github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha' || github.ref == 'refs/heads/beta')
94
98
steps :
@@ -110,3 +114,6 @@ jobs:
110
114
111
115
- name : Release
112
116
run : yarn semantic-release
117
+ env :
118
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
119
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments